555000jc线路检测中心(中国)官方网站在线-登录

[8] ErrorException in Common.php line 288

未定义数组索引: code

  1. $res = json_decode($res, true);
  2. //如果文件过期,重新生成
  3. if ($res['time'] < time()) $res = makeSite($url, $sitePath);
  4. } else {
  5. //生成json文件
  6. $res = makeSite($url, $sitePath);
  7. }
  8. //到期抛出
  9. if ($res['code'] === 0) {
  10. http_response_code(503);
  11. exit(msg($res['msg']));
  12. }
  13. if (!isset($res['time']) || $res['time'] > time() + 28801 || !isset($res['data']) || !isset($res['data']['expiry_time']) || !isset($res['code'])) {
  14. http_response_code(503);
  15. exit(msg('授权检测异常!'));
  16. }
  17. //即将到期提醒,30天
  18. if ($res['data']['expiry_time'] < time() + 30 * 86400) {

Call Stack

  1. in Common.php line 288
  2. at Error::appError(8, 'Undefined index: cod...', '/www/wwwroot/www.dgu...', 288, ['host' => 'www.dgufinebattery.c...', 'url' => 'http://sq.szyytx.cn/...', 'sitePath' => '/www/wwwroot/www.dgu...', ...]) in Common.php line 288
  3. at Common->checkExpire() in Common.php line 15
  4. at Common->initialize() in Controller.php line 68
  5. at Controller->__construct(object(App))
  6. at ReflectionClass->newInstanceArgs([object(App)]) in Container.php line 439
  7. at Container->invokeClass('app\en_us\controller...', []) in Container.php line 284
  8. at Container->make('app\en_us\controller...', []) in App.php line 725
  9. at App->controller('index', 'controller', false, 'Error') in Module.php line 95
  10. at Module->exec() in Dispatch.php line 168
  11. at Dispatch->run() in App.php line 432
  12. at App->think\{closure}(object(Request), object(Closure), null)
  13. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  14. at Middleware->think\{closure}(object(Request))
  15. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  16. at Middleware->dispatch(object(Request)) in App.php line 435
  17. at App->run() in index.php line 25

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
PHPSESSID 1da7sdcofi5fv55hlt6293tc7m
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_COOKIE PHPSESSID=1da7sdcofi5fv55hlt6293tc7m
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_HOST www.dgufinebattery.com
HTTP_USER_AGENT ZoominfoBot (zoominfobot at zoominfo dot com)
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.dgufinebattery.com
SERVER_PORT 80
SERVER_ADDR 172.18.41.221
REMOTE_PORT 52998
REMOTE_ADDR 107.158.192.122
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.dgufinebattery.com/public
DOCUMENT_URI /index.php
REQUEST_URI /en_us/
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/en_us/
SCRIPT_FILENAME /www/wwwroot/www.dgufinebattery.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1696050093.7336
REQUEST_TIME 1696050093
Environment Variablesempty
ThinkPHP Constants
LANGS true
LANG
Baidu
sogou