[0] ThrowableError in Index.php line 78

致命错误: Call to a member function render() on string

  1. 'query' => Request::instance()->param(),//不丢失已存在的url参数
  2. ]);
  3. $count = DB::name('temp')->where($type_param)->where($trade_param)->where($color_param)->where($keyword_param)->where('status',1)->count();
  4. }else if(input('param.order') == 'tui'){
  5. $res = DB::name('temp')->where($type_param)->where($trade_param)->where($color_param)->where($keyword_param)->where('tui',1)->order('orderid desc')->where('status',1)->paginate($page, false, [
  6. 'query' => Request::instance()->param(),//不丢失已存在的url参数
  7. ]);
  8. $count = DB::name('temp')->where($type_param)->where($trade_param)->where($color_param)->where($keyword_param)->where('tui',1)->where('status',1)->count();
  9. }
  10. $page = $res->render();
  11. $this->assign('page', $page);
  12. $this->assign('res', $res);
  13. $this->assign('count', $count);
  14. //浏览过的 模板
  15. $guotime = time()- 60*60*24;
  16. $browse = DB::name('browse')
  17. ->alias('b')
  18. ->join('__TEMP__ t','b.temp_id = t.id','LEFT')

Call Stack

  1. in Index.php line 78
  2. at Index->index()
  3. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 224
  4. at App::invokeMethod([object(Index), 'index'], []) in App.php line 389
  5. at App::module([null, 'index', 'index'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 130
  6. at App::run() in start.php line 18
  7. at require('/home/www/wwwroot/si...') in index.php line 19

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
site.shkj.net
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/trade/136/order/www.hzwzjs.net
REDIRECT_STATUS
200
SERVER_NAME
site.shkj.net
SERVER_PORT
80
SERVER_ADDR
202.91.248.43
REMOTE_PORT
39922
REMOTE_ADDR
54.172.162.78
SERVER_SOFTWARE
nginx/1.24.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/home/www/wwwroot/site.shkj.net
DOCUMENT_URI
/index.php
REQUEST_URI
/trade/136/order/www.hzwzjs.net
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/trade/136/order/www.hzwzjs.net
SCRIPT_FILENAME
/home/www/wwwroot/site.shkj.net/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711687007.5468
REQUEST_TIME
1711687007
Environment Variables
empty

ThinkPHP Constants

BASE_PATH
BIND_MODULE
index
APP_PATH
/home/www/wwwroot/site.shkj.net/app/
THINK_VERSION
5.0.7
THINK_START_TIME
1711687007.5477
THINK_START_MEM
376312
EXT
.php
DS
/
THINK_PATH
/home/www/wwwroot/site.shkj.net/thinkphp/
LIB_PATH
/home/www/wwwroot/site.shkj.net/thinkphp/library/
CORE_PATH
/home/www/wwwroot/site.shkj.net/thinkphp/library/think/
TRAIT_PATH
/home/www/wwwroot/site.shkj.net/thinkphp/library/traits/
ROOT_PATH
/home/www/wwwroot/site.shkj.net/
EXTEND_PATH
/home/www/wwwroot/site.shkj.net/extend/
VENDOR_PATH
/home/www/wwwroot/site.shkj.net/vendor/
RUNTIME_PATH
/home/www/wwwroot/site.shkj.net/runtime/
LOG_PATH
/home/www/wwwroot/site.shkj.net/runtime/log/
CACHE_PATH
/home/www/wwwroot/site.shkj.net/runtime/cache/
TEMP_PATH
/home/www/wwwroot/site.shkj.net/runtime/temp/
CONF_PATH
/home/www/wwwroot/site.shkj.net/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false