[2] ErrorException in 3b94a3f2b1a6c2fd0f1a8ae129f86121.php line 30

file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known

  1. $toptype_name = '硬盘';
  2. $toptype_namejc = '硬盘';
  3. $xynavmod = 'hdd';
  4. }
  5. //实时更新京东价格
  6. if($ssdval['jdspbh'] && time()-('86400'*7) > $ssdval['jd_uptime']){
  7. $jdjgjson = file_get_contents('http://p.3.cn/prices/mgets?skuIds=J_'.intval($ssdval['jdspbh']).'&type=1');
  8. $jdbjarr = json_decode($jdjgjson,true);
  9. $jdckj = str_replace('','',$jdbjarr['0']['p']);
  10. Db::name('cack_yingpan')->where('id', $ssdval['id'])->update(['jdjg'=>$jdckj,'jd_uptime'=>time()]);
  11. $ssdval = Db::name('cack_yingpan')->where('likebh','like',$_GET['lbh'])->find();
  12. }
  13. //实时更新京东价格end
  14. $data = array(
  15. 'heat'=>$ssdval['heat']+1,
  16. );

Call Stack

  1. in 3b94a3f2b1a6c2fd0f1a8ae129f86121.php line 30
  2. at Error::appError(2, 'file_get_contents():...', '/www/wwwroot/www.xin...', 30, ['cacheFile' => '/www/wwwroot/www.xin...', 'vars' => ['user' => null, 'site' => ['name' => '芯参数', 'beian' => '津ICP备19007594号...', 'cdnurl' => 'https://c1.xincanshu...', ...], 'config' => ['site' => ['name' => '芯参数', 'cdnurl' => 'https://c1.xincanshu...', 'version' => 1711667730, ...], 'upload' => ['cdnurl' => 'https://c1.xincanshu...', 'uploadurl' => 'ajax/upload', 'bucket' => 'local', ...], 'modulename' => 'index', ...]], 'user' => null, ...])
  3. at file_get_contents('http://p.3.cn/prices...') in 3b94a3f2b1a6c2fd0f1a8ae129f86121.php line 30
  4. at include('/www/wwwroot/www.xin...') in File.php line 53
  5. at File->read('/www/wwwroot/www.xin...', ['user' => null, 'site' => ['name' => '芯参数', 'beian' => '津ICP备19007594号...', 'cdnurl' => 'https://c1.xincanshu...', ...], 'config' => ['site' => ['name' => '芯参数', 'cdnurl' => 'https://c1.xincanshu...', 'version' => 1711667730, ...], 'upload' => ['cdnurl' => 'https://c1.xincanshu...', 'uploadurl' => 'ajax/upload', 'bucket' => 'local', ...], 'modulename' => 'index', ...]]) in Template.php line 188
  6. at Template->fetch('/www/wwwroot/www.xin...', ['user' => null, 'site' => ['name' => '芯参数', 'beian' => '津ICP备19007594号...', 'cdnurl' => 'https://c1.xincanshu...', ...], 'config' => ['site' => ['name' => '芯参数', 'cdnurl' => 'https://c1.xincanshu...', 'version' => 1711667730, ...], 'upload' => ['cdnurl' => 'https://c1.xincanshu...', 'uploadurl' => 'ajax/upload', 'bucket' => 'local', ...], 'modulename' => 'index', ...]], []) in Think.php line 86
  7. at Think->fetch('/www/wwwroot/www.xin...', ['user' => null, 'site' => ['name' => '芯参数', 'beian' => '津ICP备19007594号...', 'cdnurl' => 'https://c1.xincanshu...', ...], 'config' => ['site' => ['name' => '芯参数', 'cdnurl' => 'https://c1.xincanshu...', 'version' => 1711667730, ...], 'upload' => ['cdnurl' => 'https://c1.xincanshu...', 'uploadurl' => 'ajax/upload', 'bucket' => 'local', ...], 'modulename' => 'index', ...]], []) in View.php line 163
  8. at View->fetch() in Ssd.php line 20
  9. at Ssd->view()
  10. at ReflectionMethod->invokeArgs(object(Ssd), []) in App.php line 343
  11. at App::invokeMethod([object(Ssd), 'view'], []) in App.php line 611
  12. at App::module(['index', 'ssd', 'view'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  13. at App::exec(['type' => 'module', 'module' => ['index', 'ssd', 'view']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  14. at App::run() in start.php line 19
  15. at require('/www/wwwroot/www.xin...') in index.php line 24

Environment Variables

GET Data

lbh
WDS500G2B0C
id
14
view
index
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_OHC_UPSTREAM_ID
f012eb499b1c8c48,2ba1a8029364b7ee
HTTP_BAIDU_CDN_TTL
2
HTTP_X_REAL_IP
54.163.14.144
HTTP_X_FORWARDED_HOST
www.xincanshu.com
HTTP_X_FORWARDED_PROTO
https
HTTP_X_FORWARDED_FOR
54.163.14.144,110.185.108.68
HTTP_OHC_SSL_VERSION
2
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_BAIDU_CDN_REQUEST_ID
1711667730345-363147393-110.185.108.57-3
HTTP_VIA
Baidu-CDN-Node1,Baidu-CDN-Node3
HTTP_X_VIA
Baidu-CDN-Node1,Baidu-CDN-Node3
HTTP_CONNECTION
keep-alive
HTTP_RANGE
bytes=0-1048575
HTTP_HOST
www.xincanshu.com
PATH_INFO
/index/ssd/view.html
REDIRECT_STATUS
200
SERVER_NAME
www.xincanshu.com
SERVER_PORT
443
SERVER_ADDR
10.0.16.12
REMOTE_PORT
47191
REMOTE_ADDR
150.138.138.204
SERVER_SOFTWARE
nginx/1.20.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/www.xincanshu.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/ssd/WDS500G2B0C@14/
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/ssd/view.html&lbh=WDS500G2B0C&id=14&view=index
SCRIPT_FILENAME
/www/wwwroot/www.xincanshu.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711667730.5542
REQUEST_TIME
1711667730
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.xincanshu.com/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711667730.5543
THINK_START_MEM
399112
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.xincanshu.com/thinkphp/
LIB_PATH
/www/wwwroot/www.xincanshu.com/thinkphp/library/
CORE_PATH
/www/wwwroot/www.xincanshu.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.xincanshu.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.xincanshu.com/
EXTEND_PATH
/www/wwwroot/www.xincanshu.com/extend/
VENDOR_PATH
/www/wwwroot/www.xincanshu.com/vendor/
RUNTIME_PATH
/www/wwwroot/www.xincanshu.com/runtime/
LOG_PATH
/www/wwwroot/www.xincanshu.com/runtime/log/
CACHE_PATH
/www/wwwroot/www.xincanshu.com/runtime/cache/
TEMP_PATH
/www/wwwroot/www.xincanshu.com/runtime/temp/
CONF_PATH
/www/wwwroot/www.xincanshu.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/www/wwwroot/www.xincanshu.com/vendor/ezyang/htmlpurifier/library
ADDON_PATH
/www/wwwroot/www.xincanshu.com/addons/
PINYIN_DEFAULT
4096
PINYIN_TONE
2
PINYIN_NO_TONE
4
PINYIN_ASCII_TONE
8
PINYIN_NAME
16
PINYIN_KEEP_NUMBER
32
PINYIN_KEEP_ENGLISH
64
PINYIN_UMLAUT_V
128
PINYIN_KEEP_PUNCTUATION
256
QINIU_FUNCTIONS_VERSION
7.12.0
XS_APP_ROOT
/www/wwwroot/www.xincanshu.com/addons/xunsearch/data