[0] ThrowableError in Designer.php line 147

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

  1. ]);
  2. return $this->fetch(getCurTemplate());
  3. }
  4. public function detail()
  5. {
  6. $id = input('param.id');
  7. Db::name($this->DesignerModel->dbTable())->where(['id'=>$id])->setInc('hits');
  8. $lists = $this->DesignerModel->where('id',$id)->find()->toArray();
  9. if(!$lists) $this->redirect('/store');
  10. $lists = $this->DesignerModel->dealLang($lists);
  11. $store = $this->StoreModel->where('id',$lists['store_id'])->where('status',1)->find()->toArray();
  12. if($store) $store = $this->StoreModel->dealLang($store);
  13. $casesIds = $this->CasesModel->where('designer_id','=',$id)->where('status',1)->column('id');
  14. $casesRec = $this->CasesModel ->getListByWhere([['id','in',$casesIds]],4);

Call Stack

  1. in Designer.php line 147
  2. at Designer->detail()
  3. at ReflectionMethod->invokeArgs(object(Designer), []) in Container.php line 395
  4. at Container->invokeReflectMethod(object(Designer), object(ReflectionMethod), ['id' => '1', '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 44

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_X_ALICDN_DA_VIA 58.218.215.167,218.91.196.120
HTTP_ALI_CDN_APPVIEW_NAME cdn-tengine
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_ALI_SWIFT_FORCE_TTL_CODE 400=0
HTTP_X_CLIENT_SCHEME https
HTTP_X_FORWARDED_FOR 52.54.111.228
HTTP_ALI_SWIFT_STAT_HOST luan.huaran.com.cn
HTTP_ALI_SWIFT_LOG_HOST luan.huaran.com.cn
HTTP_ALI_CDN_REAL_IP 52.54.111.228
HTTP_ALI_CDN_REAL_PORT 37104
HTTP_EAGLEEYE_TRACEID 3adad01d17116560066716762e
HTTP_VIA cn192.l1, l2ea120-5.l2
HTTP_HOST luan.huaran.com.cn
PATH_INFO /desdetail/1.html
REDIRECT_STATUS 200
SERVER_NAME luan.huaran.com.cn
SERVER_PORT 443
SERVER_ADDR 172.19.100.4
REMOTE_PORT 24024
REMOTE_ADDR 8.132.18.79
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/luan.huaran.com.cn/public
DOCUMENT_URI /index.php/desdetail/1.html
REQUEST_URI /index.php/desdetail/1.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /www/wwwroot/luan.huaran.com.cn/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php/desdetail/1.html
REQUEST_TIME_FLOAT 1711656006.7012
REQUEST_TIME 1711656006
Environment Variablesempty
ThinkPHP Constants
TEMP_HTML_PATH ./html/
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