[0] Exception in Builder.php line 813

排序表达式错误:update_time%252Bdesc

  1. } else {
  2. $sort = $val;
  3. }
  4. if (preg_match('/^[\w\.]+$/', $key)) {
  5. $sort = strtoupper($sort);
  6. $sort = in_array($sort, ['ASC', 'DESC'], true) ? ' ' . $sort : '';
  7. $array[] = $this->parseKey($query, $key, true) . $sort;
  8. } else {
  9. throw new Exception('order express error:' . $key);
  10. }
  11. }
  12. }
  13. return empty($array) ? '' : ' ORDER BY ' . implode(',', $array);
  14. }
  15. /**
  16. * orderField分析

Call Stack

  1. in Builder.php line 813
  2. at Builder->parseOrder(object(Query), ['update_time%252Bdesc']) in Builder.php line 994
  3. at Builder->select(object(Query)) in Connection.php line 908
  4. at Connection->select(object(Query)) in Query.php line 3006
  5. at Query->select() in Query.php line 1783
  6. at Query->paginate(20, false) in Api.php line 194
  7. at Api->get_novel(['25'], 'update_time%252Bdesc', 20, false, '', false, false, false, 1) in c1b5730f3b4493e24459252ef1fbb545.php line 167
  8. at include('/home/bae/app/runtim...') in File.php line 59
  9. at File->read('/home/bae/app/runtim...', ['web' => ['meta_description' => '...', 'meta_keywords' => '...', 'close' => '1', ...], 'mold' => 'web', 'home_tplpath' => '/template/home/defau...', ...]) in Template.php line 226
  10. at Template->fetch('template/home/defaul...', ['web' => ['meta_description' => '...', 'meta_keywords' => '...', 'close' => '1', ...], 'mold' => 'web', 'home_tplpath' => '/template/home/defau...', ...], []) in Think.php line 93
  11. at Think->fetch('template/home/defaul...', ['web' => ['meta_description' => '...', 'meta_keywords' => '...', 'close' => '1', ...], 'mold' => 'web', 'home_tplpath' => '/template/home/defau...', ...], []) in View.php line 189
  12. at View->fetch('template/home/defaul...', ['web' => ['meta_description' => '...', 'meta_keywords' => '...', 'close' => '1', ...], 'mold' => 'web', 'home_tplpath' => '/template/home/defau...', ...], [], false) in Base.php line 46
  13. at Base->fetch('template/home/defaul...') in Lists.php line 63
  14. at Lists->lists()
  15. at ReflectionMethod->invokeArgs(object(Lists), []) in Container.php line 395
  16. at Container->invokeReflectMethod(object(Lists), object(ReflectionMethod), ['order' => 'update_time%252Bdesc', 'id' => '25']) in Module.php line 132
  17. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  18. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  19. at Middleware->think\{closure}(object(Request))
  20. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  21. at Middleware->dispatch(object(Request), 'controller') in Module.php line 137
  22. at Module->exec() in Dispatch.php line 168
  23. at Dispatch->run() in App.php line 432
  24. at App->think\{closure}(object(Request), object(Closure), null)
  25. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  26. at Middleware->think\{closure}(object(Request))
  27. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  28. at Middleware->dispatch(object(Request)) in App.php line 435
  29. at App->run() in index.php line 13

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
lf___forward__ /home/lists/lists/order/update_time%252Bdesc/id/25.html
Sessionempty
Server/Request Data
USER bae
HOME /home/bae
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST mingxintang.cn
HTTP_CLIENTIP 54.144.81.21
HTTP_X_FORWARDED_FOR 54.144.81.21
HTTP_X_FORWARDED_PROTO https
REDIRECT_STATUS 200
SERVER_NAME mingxintang.cn
SERVER_ADDR 172.17.0.6
REMOTE_PORT
REMOTE_ADDR 54.144.81.21
SERVER_SOFTWARE nginx/1.16.1
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /home/bae/app
DOCUMENT_URI /index.php/home/lists/lists/order/update_time%2Bdesc/id/25.html
REQUEST_URI /home/lists/lists/order/update_time%252Bdesc/id/25.html
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SERVER_PORT 80
PATH_INFO /home/lists/lists/order/update_time%252Bdesc/id/25.html
SCRIPT_NAME /index.php/home/lists/lists/order/update_time%2Bdesc/id/25.html
SCRIPT_FILENAME /home/bae/app/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php/home/lists/lists/order/update_time%2Bdesc/id/25.html/home/lists/lists/order/update_time%252Bdesc/id/25.html
REQUEST_TIME_FLOAT 1711616632.2076
REQUEST_TIME 1711616632
Environment Variablesempty
ThinkPHP Constants
SERVER_SOFTWARE bae/3.0
BAE_ENV_APPID appids7k23m8d92
BAE_ENV_LOG_HOST 172.17.0.1
BAE_ENV_LOG_PORT 7000
BAE_MEMORY 128
APP_PATH /home/bae/app/application/
UID 0