[0] ThrowableError in Cases.php line 272

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

  1. $designerInfo = null;
  2. $where = [
  3. ['status','=',1],
  4. ['delete_time','null','']
  5. ];
  6. if($designer){
  7. $pageQuery['designer'] = $designer;
  8. $where[] = ['designer_id','=',$designer];
  9. $designerInfo = $this->DesignerModel->where('id',$designer)->find()->toArray();
  10. $designerInfo = $this->DesignerModel->dealLang($designerInfo);
  11. }
  12. $building = input('building');
  13. if($building){
  14. $pageQuery['building'] = $building;
  15. $where[] = ['building_id','=',$building];
  16. }
  17. $store = input('store');
  18. if($store){

Call Stack

  1. in Cases.php line 272
  2. at Cases->lst()
  3. at ReflectionMethod->invokeArgs(object(Cases), []) in Container.php line 395
  4. at Container->invokeReflectMethod(object(Cases), object(ReflectionMethod), ['designer' => '5', '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 Data
designer 5
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_X_ALICDN_DA_VIA 61.160.192.100,115.227.47.121
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 3.90.242.249
HTTP_ALI_SWIFT_STAT_HOST tongling.huaran.com.cn
HTTP_ALI_SWIFT_LOG_HOST tongling.huaran.com.cn
HTTP_ALI_CDN_REAL_IP 3.90.242.249
HTTP_ALI_CDN_REAL_PORT 34374
HTTP_EAGLEEYE_TRACEID 3da0c01117116707278227092e
HTTP_VIA cn6425.l1, l2eu95-4.l2
HTTP_HOST tongling.huaran.com.cn
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME tongling.huaran.com.cn
SERVER_PORT 443
SERVER_ADDR 172.19.100.4
REMOTE_PORT 31058
REMOTE_ADDR 110.75.191.56
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/tongling.huaran.com.cn/public
DOCUMENT_URI /index.php
REQUEST_URI /caslst.html?designer=5
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/caslst.html&designer=5
SCRIPT_FILENAME /www/wwwroot/tongling.huaran.com.cn/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711670727.8367
REQUEST_TIME 1711670727
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