[0] Exception in Builder.php line 309

查询表达式错误:193

  1. continue;
  2. }
  3. if (is_array($value)) {
  4. if (key($value) !== 0) {
  5. throw new Exception('where express error:' . var_export($value, true));
  6. }
  7. $field = array_shift($value);
  8. } elseif (!($value instanceof \Closure)) {
  9. throw new Exception('where express error:' . var_export($value, true));
  10. }
  11. if ($value instanceof \Closure) {
  12. // 使用闭包查询
  13. $newQuery = $query->newQuery()->setConnection($this->connection);
  14. $value($newQuery);
  15. $whereClause = $this->buildWhere($query, $newQuery->getOptions('where'));
  16. if (!empty($whereClause)) {

Call Stack

  1. in Builder.php line 309
  2. at Builder->buildWhere(object(Query), ['AND' => [['status', 'eq', 1], ['timeout', 'gt', 1711643046], ['city', 'in', [8]], ...]]) in Builder.php line 264
  3. at Builder->parseWhere(object(Query), ['AND' => [['status', 'eq', 1], ['timeout', 'gt', 1711643046], ['city', 'in', [8]], ...]]) in Builder.php line 989
  4. at Builder->select(object(Query)) in Connection.php line 1277
  5. at Connection->value(object(Query), ['COUNT(*) AS tp_count'], 0) in Connection.php line 1323
  6. at Connection->aggregate(object(Query), 'COUNT', 'COUNT(*) AS tp_count') in Query.php line 623
  7. at Query->aggregate('COUNT', '*', true) in Query.php line 658
  8. at Query->count() in Query.php line 1784
  9. at Query->paginate(10) in FangCms.php line 476
  10. at FangCms::second() in Second.php line 24
  11. at Second->index()
  12. at ReflectionMethod->invokeArgs(object(Second), []) in Container.php line 395
  13. at Container->invokeReflectMethod(object(Second), object(ReflectionMethod), ['alias' => 'qinhuai', 'price' => '0', 'acreage' => '0', ...]) in Module.php line 132
  14. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  15. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  16. at Middleware->think\{closure}(object(Request))
  17. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  18. at Middleware->dispatch(object(Request), 'controller') in Module.php line 137
  19. at Module->exec() in Dispatch.php line 168
  20. at Dispatch->run() in App.php line 432
  21. at App->think\{closure}(object(Request), object(Closure), null)
  22. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  23. at Middleware->think\{closure}(object(Request))
  24. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  25. at Middleware->dispatch(object(Request)) in App.php line 435
  26. at App->run() in index.php line 11

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST www.yqghj.cn
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME yqghj.cn
SERVER_PORT 443
SERVER_ADDR 172.21.0.6
REMOTE_PORT 34204
REMOTE_ADDR 52.54.103.76
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/yqghj.cn/public
DOCUMENT_URI /index.php
REQUEST_URI /esf-qinhuai-0-0-0-0-0-193-0-0-0-0-0-1.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/esf-qinhuai-0-0-0-0-0-193-0-0-0-0-0-1.html
SCRIPT_FILENAME /www/wwwroot/yqghj.cn/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711643046.7979
REQUEST_TIME 1711643046
Environment Variablesempty
ThinkPHP Constants
QINIU_FUNCTIONS_VERSION 7.2.7