|
|
|
@ -114,7 +114,7 @@ class NewNvshenService |
|
|
|
// dump($albumCodeMap);exit;
|
|
|
|
} |
|
|
|
$baseUrl = "https://www.invshen.net"; |
|
|
|
usleep(random_int(1000, 10000) * 1000); |
|
|
|
usleep(random_int(100, 1000) * 1000); |
|
|
|
$peopleUrl = "https://www.invshen.net/girl/"; |
|
|
|
$peopleUrl .= $name['code']; |
|
|
|
|
|
|
|
@ -129,7 +129,7 @@ class NewNvshenService |
|
|
|
echo 'connection error: ' . $e->getMessage() . "\n"; |
|
|
|
echo "retry times: " . $i . " times \n"; |
|
|
|
sleep(1); |
|
|
|
$sleepTime = 1000 * random_int(1000, 10000); |
|
|
|
$sleepTime = 1000 * random_int(100, 1000); |
|
|
|
echo "retry sleep {$sleepTime} nano second \n"; |
|
|
|
usleep($sleepTime); |
|
|
|
} |
|
|
|
@ -178,7 +178,7 @@ class NewNvshenService |
|
|
|
dump("相册已超过限制数量,跳出"); |
|
|
|
break 2; |
|
|
|
} |
|
|
|
usleep(10000 * random_int(1000, 10000)); |
|
|
|
usleep(1000 * random_int(100, 1000)); |
|
|
|
dump("相册:", [$album]); |
|
|
|
// $pageQL = $qL0->get($baseUrl . $album);
|
|
|
|
for ($m = 0; $m < 100; $m++) { |
|
|
|
@ -192,7 +192,7 @@ class NewNvshenService |
|
|
|
echo 'connection error: ' . $e->getMessage() . "\n"; |
|
|
|
echo "retry times: " . $m . " times \n"; |
|
|
|
sleep(1); |
|
|
|
$sleepTime = 1000 * random_int(1000, 10000); |
|
|
|
$sleepTime = 1000 * random_int(100, 1000); |
|
|
|
echo "retry sleep {$sleepTime} nano second \n"; |
|
|
|
usleep($sleepTime); |
|
|
|
} |
|
|
|
@ -246,7 +246,7 @@ class NewNvshenService |
|
|
|
echo 'Curl error: ' . curl_error($curl_handle) . "\n"; |
|
|
|
echo "retry times: " . $i++ . " times \n"; |
|
|
|
sleep(1); |
|
|
|
$sleepTime = 1000 * random_int(1000, 10000); |
|
|
|
$sleepTime = 1000 * random_int(100, 1000); |
|
|
|
echo "retry sleep {$sleepTime} nano second \n"; |
|
|
|
usleep($sleepTime); |
|
|
|
$query = curl_exec($curl_handle); |
|
|
|
|