...
|
...
|
@@ -201,17 +201,16 @@ class Yohobuy |
|
|
}
|
|
|
|
|
|
// 调用API接口
|
|
|
do {
|
|
|
$status = curl_multi_exec($mh, $running);
|
|
|
}
|
|
|
while ($status == CURLM_CALL_MULTI_PERFORM);
|
|
|
while ($running && $status == CURLM_OK) {
|
|
|
if (curl_multi_select($mh, 0.5) != -1) {
|
|
|
do {
|
|
|
$status = curl_multi_exec($mh, $running);
|
|
|
}
|
|
|
while ($status == CURLM_CALL_MULTI_PERFORM);
|
|
|
}
|
|
|
do {
|
|
|
$status = curl_multi_exec($mh, $running);
|
|
|
}
|
|
|
while ($status == CURLM_CALL_MULTI_PERFORM);
|
|
|
while ($running && $status == CURLM_OK) {
|
|
|
if (curl_multi_select($mh, 0.5) > -1) {
|
|
|
do {
|
|
|
$status = curl_multi_exec($mh, $running);
|
|
|
} while ($status == CURLM_CALL_MULTI_PERFORM);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 获取API接口响应的结果
|
...
|
...
|
|