[2] ErrorException in common.php line 64

file_get_contents(https://eco-api.meiqia.com/enterprise/957e34975a78a7c54892fec1cc077db3/online_agents): failed to open stream: HTTP request failed! HTTP/1.0 429 Too Many Requests

  1. /*
  2. 英文站美洽在线状态(老版本英文站直接拿过来)
  3. */
  4. function meiQiaOnline(){
  5. $view = View::instance(Config::get('template'), Config::get('view_replace_str'));
  6. $onlineapi = "https://app.meiqia.com/api/enterprise/13ef4f35723e2485a48cb630ef7c2007/online_agents";
  7. $onlineapiZH="https://eco-api.meiqia.com/enterprise/957e34975a78a7c54892fec1cc077db3/online_agents";
  8. $json=file_get_contents($onlineapi);
  9. $jsonZH=file_get_contents($onlineapiZH);
  10. $result=json_decode($json,true);
  11. $resultZH=json_decode($jsonZH,true);
  12. $online_list = $result['agents'];
  13. $online_listZH = $resultZH['agents'];
  14. $online_list = array_merge($online_list,$online_listZH);
  15. if(!empty($online_list)){
  16. $online_token = [];
  17. $token = [];
  18. foreach($online_list as $k => $v){

Call Stack

  1. in common.php line 64
  2. at Error::appError(2, 'file_get_contents(ht...', '/wwwnew/html/globevi...', 64, ['view' => object(View), 'onlineapi' => 'https://app.meiqia.c...', 'onlineapiZH' => 'https://eco-api.meiq...', ...])
  3. at file_get_contents('https://eco-api.meiq...') in common.php line 64
  4. at meiQiaOnline() in Base.php line 58
  5. at Base->__construct()
  6. at ReflectionClass->newInstanceArgs([]) in App.php line 356
  7. at App::invokeClass('app\globevisapc_en\c...') in Loader.php line 459
  8. at Loader::controller('formall', 'controller', false, 'Error') in App.php line 573
  9. at App::module(['globevisapc_en', 'formall', 'formView'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 454
  10. at App::exec(['type' => 'module', 'module' => ['globevisapc_en', 'formall', 'formView']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 137
  11. at App::run() in start.php line 19
  12. at require('/wwwnew/html/globevi...') in index.php line 16

Environment Variables

GET Data

id
14
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/dev/null
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/wwwnew/html/globevisa/publicnew/index.php
QUERY_STRING
s=/globevisapc_en/formall/formView&id=14
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/globevisapc_en/formall/formView?id=14
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/wwwnew/html/globevisa/publicnew
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.7.11
REMOTE_ADDR
47.93.181.24
REMOTE_PORT
33862
SERVER_ADDR
47.93.181.24
SERVER_PORT
443
SERVER_NAME
www.globevisa.com.cn
REDIRECT_STATUS
200
HTTP_HOST
www.globevisa.com.cn
HTTP_ACCEPT
*/*
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1559532470.8555
REQUEST_TIME
1559532470
PATH_INFO
/globevisapc_en/formall/formView
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/wwwnew/html/globevisa/publicnew/../application/
THINK_VERSION
5.0.14
THINK_START_TIME
1559532470.8565
THINK_START_MEM
270664
EXT
.php
DS
/
THINK_PATH
/wwwnew/html/globevisa/thinkphp/
LIB_PATH
/wwwnew/html/globevisa/thinkphp/library/
CORE_PATH
/wwwnew/html/globevisa/thinkphp/library/think/
TRAIT_PATH
/wwwnew/html/globevisa/thinkphp/library/traits/
ROOT_PATH
/wwwnew/html/globevisa/
EXTEND_PATH
/wwwnew/html/globevisa/extend/
VENDOR_PATH
/wwwnew/html/globevisa/vendor/
RUNTIME_PATH
/wwwnew/html/globevisa/runtime/
LOG_PATH
/wwwnew/html/globevisa/runtime/log/
CACHE_PATH
/wwwnew/html/globevisa/runtime/cache/
TEMP_PATH
/wwwnew/html/globevisa/runtime/temp/
CONF_PATH
/wwwnew/html/globevisa/publicnew/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false