[0] ModelNotFoundException in Query.php line 3412

模型数据不存在:app\common\model\Product

  1. * @access protected
  2. * @param array $options 查询参数
  3. * @throws ModelNotFoundException
  4. * @throws DataNotFoundException
  5. */
  6. protected function throwNotFound($options = [])
  7. {
  8. if (!empty($this->model)) {
  9. $class = get_class($this->model);
  10. throw new ModelNotFoundException('model data Not Found:' . $class, $class, $options);
  11. }
  12. $table = is_array($options['table']) ? key($options['table']) : $options['table'];
  13. throw new DataNotFoundException('table data not Found:' . $table, $table, $options);
  14. }
  15. /**
  16. * 查找多条记录 如果不存在则抛出异常
  17. * @access public
  18. * @param array|string|Query|\Closure $data

Call Stack

  1. in Query.php line 3412
  2. at Query->throwNotFound(['json' => [], 'json_assoc' => false, 'field_type' => [], ...]) in Query.php line 3166
  3. at Query->resultToEmpty() in Query.php line 3140
  4. at Query->find('518') in Query.php line 3193
  5. at Query->get('518', [], false, true) in Query.php line 3207
  6. at Query->getOrFail('518')
  7. at call_user_func_array([object(Query), 'getOrFail'], ['518']) in Model.php line 1107
  8. at Model::__callStatic('getOrFail', ['518']) in Product.php line 69
  9. at Product->read('518')
  10. at ReflectionMethod->invokeArgs(object(Product), ['518']) in Container.php line 395
  11. at Container->invokeReflectMethod(object(Product), object(ReflectionMethod), ['id' => '518']) in Module.php line 131
  12. at Module->think\route\dispatch\{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), 'controller') in Module.php line 136
  17. at Module->exec() in Dispatch.php line 168
  18. at Dispatch->run() in App.php line 432
  19. at App->think\{closure}(object(Request), object(Closure), null)
  20. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  21. at Middleware->think\{closure}(object(Request)) in CheckConf.php line 48
  22. at CheckConf->handle(object(Request), object(Closure), null)
  23. at call_user_func_array([object(CheckConf), 'handle'], [object(Request), object(Closure), null]) in Middleware.php line 185
  24. at Middleware->think\{closure}(object(Request))
  25. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  26. at Middleware->dispatch(object(Request)) in App.php line 435
  27. at App->run() in index.php line 21

Exception Datas

Database Config
json []
json_assoc false
field_type []
fail true
table product
where { "AND": { "id": [ "id", "=", "518" ] } }
field *
data { "id": "518" }
order []
join []
union []
strict true
master false
lock false
fetch_pdo false
fetch_sql false
distinct false
group
having
force
comment

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST dlfugu.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO /index/product/read/id/518.html
REDIRECT_STATUS 200
SERVER_NAME dlfugu.com
SERVER_PORT 80
SERVER_ADDR 172.24.107.237
REMOTE_PORT 45248
REMOTE_ADDR 44.200.230.43
SERVER_SOFTWARE nginx/1.15.10
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/dlfugu.com/public
DOCUMENT_URI /index.php/index/product/read/id/518.html
REQUEST_URI /index.php/index/product/read/id/518.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /www/wwwroot/dlfugu.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php/index/product/read/id/518.html
REQUEST_TIME_FLOAT 1711639494.6288
REQUEST_TIME 1711639494
Environment Variablesempty
ThinkPHP Constantsempty