[8] ErrorException in Goods.php line 214

未定义数组索引: coupon_click_url

  1. }
  2. }else{
  3. $request_url = 'http://v2.api.haodanku.com/ratesurl';
  4. $request_data['apikey'] = '49948BC6DA2D';
  5. $request_data['itemid'] = $itemid;
  6. $request_data['pid'] = 'mm_10491757_16824716_127318282';
  7. $res = $this->curl_request($request_url,$request_data);
  8. $res=json_decode($res,true);
  9. $res=$res['data'];
  10. $result['tk_url']=$res['coupon_click_url'];
  11. }
  12. header("Location: ".$result['tk_url']);
  13. die();
  14. }
  15. }
  16. public function geturl($itemid=0){
  17. if (empty($itemid)) {
  18. return $this->error('亲!你迷路了');

Call Stack

  1. in Goods.php line 214
  2. at Error::appError() in Goods.php line 214
  3. at Goods->jump()
  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
/goods/jump/itemid/601966946912.html
REDIRECT_STATUS
200
SERVER_NAME
www.caiyun123.cn
SERVER_PORT
80
SERVER_ADDR
172.16.224.102
REMOTE_PORT
41608
REMOTE_ADDR
54.160.244.62
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
/goods/jump/itemid/601966946912.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/goods/jump/itemid/601966946912.html
SCRIPT_FILENAME
/www/wwwroot/www.caiyun123.cn/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710818654.0809
REQUEST_TIME
1710818654
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
1710818654.0819
THINK_START_MEM
420456
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/