|
|
@ -14,10 +14,10 @@ class mSpider extends mBase { |
|
|
|
|
|
|
|
public function getZmhttpIp($task_key) { |
|
|
|
$rdobj = $this->initRedis(); |
|
|
|
$aa = $rdobj->get('aaa'); |
|
|
|
if($aa) return false; |
|
|
|
$ip_request = $rdobj->get('ip_request'); |
|
|
|
if ($ip_request) return false; |
|
|
|
|
|
|
|
$rdobj->setex('aaa', 60, 1); |
|
|
|
$rdobj->setex('ip_request', 60, 1); |
|
|
|
|
|
|
|
$url = "http://proxy.siyetian.com/apis_get.html?token=AesJWLNp2a65kaJdXTqFFeNpWT35ERNpnTn1STqFUeORUR31kaNh3TUl0dPRUQy4ERJdXT6lVN.QMxkTO0MjM0cTM&limit=1&type=1&time=&data_format=json&showTimeEnd=true"; |
|
|
|
$jsoninfo = $this->getCUrl($url); |
|
|
|