[8] ErrorException in Goods.php line 119

未定义数组索引: tb_p

  1. Keywords::insert($data);
  2. }else{
  3. Keywords::where('id='.$isexit['id'])->update(array('hits'=>$isexit['hits']+1));
  4. }
  5. }
  6. $once = 20;
  7. $url="http://v2.api.haodanku.com/supersearch/apikey/49948BC6DA2D/keyword/".urlencode($keyword)."/back/".$once."/min_id/".$min_id."/tb_p/".$tb_p."/sort/0/is_tmall/0/is_coupon/0/limitrate/0";
  8. $result=$this->curl_request($url);
  9. $result=json_decode($result,true);
  10. $view=['tb_p'=>$result['tb_p'],'min_id'=>$result['min_id'],'GoodsList'=>$result['data'],'cate'=> null,'keyword'=>$keyword];
  11. $r=input('r');
  12. if($r=="ajax"){
  13. return $view;
  14. }else{
  15. $this->assign($view);
  16. $this->assign("title","淘宝天猫".$keyword."优惠券折扣");
  17. return $this->view->fetch();
  18. }

Call Stack

  1. in Goods.php line 119
  2. at Error::appError() in Goods.php line 119
  3. at Goods->search()
  4. at ReflectionMethod->invokeArgs() in App.php line 343
  5. at App::invokeMethod() in App.php line 611
  6. at App::module() in App.php line 456
  7. at App::exec() in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/www/wwwroot/www.cai...') in index.php line 24

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
www.caiyun123.cn
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/home/search/index/keyword/switchlite/discount/asc.html
REDIRECT_STATUS
200
SERVER_NAME
www.caiyun123.cn
SERVER_PORT
80
SERVER_ADDR
172.16.224.102
REMOTE_PORT
44698
REMOTE_ADDR
3.83.187.36
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/www.caiyun123.cn/public
DOCUMENT_URI
/index.php
REQUEST_URI
/home/search/index/keyword/switchlite/discount/asc.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/home/search/index/keyword/switchlite/discount/asc.html
SCRIPT_FILENAME
/www/wwwroot/www.caiyun123.cn/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711716864.1949
REQUEST_TIME
1711716864
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.caiyun123.cn/public/../application/
TOP_SDK_WORK_DIR
/tmp/
TOP_SDK_DEV_MODE
true
TOP_AUTOLOADER_PATH
/www/wwwroot/www.caiyun123.cn/extend/TopSdk
THINK_VERSION
5.0.24
THINK_START_TIME
1711716864.1958
THINK_START_MEM
420488
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.caiyun123.cn/thinkphp/
LIB_PATH
/www/wwwroot/www.caiyun123.cn/thinkphp/library/
CORE_PATH
/www/wwwroot/www.caiyun123.cn/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.caiyun123.cn/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.caiyun123.cn/
EXTEND_PATH
/www/wwwroot/www.caiyun123.cn/extend/
VENDOR_PATH
/www/wwwroot/www.caiyun123.cn/vendor/
RUNTIME_PATH
/www/wwwroot/www.caiyun123.cn/runtime/
LOG_PATH
/www/wwwroot/www.caiyun123.cn/runtime/log/
CACHE_PATH
/www/wwwroot/www.caiyun123.cn/runtime/cache/
TEMP_PATH
/www/wwwroot/www.caiyun123.cn/runtime/temp/
CONF_PATH
/www/wwwroot/www.caiyun123.cn/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/www/wwwroot/www.caiyun123.cn/addons/