[0] ThrowableError in Index.php line 3692

致命错误: Call to a member function toArray() on null

  1. $p = '免费分享一个很好的软件下载地方,各种版本可以高速下载“'.$url.'”';
  2. //$p = '免费分享一个很好的软件下载地方,各种版本可以高速下载“'.$url.'”';
  3. $this->success("SUCCESS",null,['p'=>$p,'num'=>$count,'url'=>$url]);
  4. }
  5. }
  6. $Soft = new \app\xuanying\model\Soft();
  7. $find = $Soft->find($id);
  8. if (!Request::isAjax()) {
  9. $Detail = new SoftDetail();
  10. $find = $find->toArray();
  11. if ($share_id) {
  12. $auther = $this->auther;
  13. $bool = false;
  14. $shareinfo = SoftShare::find($share_id);
  15. if ($auther['code'] > '0') {
  16. if ($auther['uid'] == $shareinfo['uid']) {
  17. $bool = true;
  18. }
  19. }

Call Stack

  1. in Index.php line 3692
  2. at Index->softdetail('879811133', '', '', '')
  3. at ReflectionMethod->invokeArgs(object(Index), ['879811133', '', '', ...]) in Container.php line 395
  4. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['id' => '879811133', 'convert' => false]) in Module.php line 131
  5. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  6. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  7. at Middleware->think\{closure}(object(Request))
  8. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  9. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  10. at Module->exec() in Dispatch.php line 168
  11. at Dispatch->run() in App.php line 432
  12. at App->think\{closure}(object(Request), object(Closure), null)
  13. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  14. at Middleware->think\{closure}(object(Request))
  15. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  16. at Middleware->dispatch(object(Request)) in App.php line 435
  17. at App->run() in index.php line 27

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Session
xuanying_tz { "state": "3f1cb84d1ba442804972acc1dc476f8e" }
Server/Request Data
USER www
HOME /home/www
HTTP_X5_UUID cb873c9ed05e15428025da067739c6a5
HTTP_X_SINFO on
HTTP_X_FORWARDED_PROTO http
HTTP_WL_PROXY_CLIENT_IP 119.23.123.179
HTTP_WEB_SERVER_TYPE nginx
HTTP_X_CLIENT_IP 3.235.42.157
HTTP_X_TRUE_IP 119.23.123.179
HTTP_X_REAL_IP 3.235.42.157
HTTP_EAGLEEYE_RPCID 0.1
HTTP_X_ALICDN_DA_VIA 58.218.215.165,113.96.58.120
HTTP_ALI_CDN_APPVIEW_NAME cdn-tengine
HTTP_ACCEPT */*
HTTP_ALI_SWIFT_FORCE_TTL_CODE 400=0
HTTP_X_CLIENT_SCHEME https
HTTP_ALI_SWIFT_STAT_HOST www.tzsucai.com
HTTP_ALI_SWIFT_LOG_HOST www.tzsucai.com
HTTP_ALI_CDN_REAL_IP 3.235.42.157
HTTP_ALI_CDN_REAL_PORT 43744
HTTP_VIA cn192.l1, l2st4-5.l2
HTTP_EAGLEEYE_TRACEID 3adad01717108172539092473e
HTTP_X_FORWARDED_FOR 3.235.42.157, 119.23.123.179
HTTP_USER_AGENT claudebot
HTTP_HOST www.tzsucai.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.tzsucai.com
SERVER_PORT 80
SERVER_ADDR 172.18.159.67
REMOTE_PORT 46754
REMOTE_ADDR 119.23.123.179
SERVER_SOFTWARE nginx/1.21.4
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/tzsucai.com/public
DOCUMENT_URI /index.php
REQUEST_URI /softdetail/879811133
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/softdetail/879811133
SCRIPT_FILENAME /www/wwwroot/tzsucai.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710817253.9281
REQUEST_TIME 1710817253
Environment Variablesempty
ThinkPHP Constants
FILTER_VALIDATE_BOOL 258
HTMLPURIFIER_PREFIX /www/wwwroot/tzsucai.com/vendor/ezyang/htmlpurifier/library
PINYIN_DEFAULT 4096
PINYIN_TONE 2
PINYIN_NO_TONE 4
PINYIN_ASCII_TONE 8
PINYIN_NAME 16
PINYIN_KEEP_NUMBER 32
PINYIN_KEEP_ENGLISH 64
PINYIN_UMLAUT_V 128
PINYIN_KEEP_PUNCTUATION 256