Commit c8df81a8 authored by hj's avatar hj

更新提交

parent c9a07ea6
......@@ -218,8 +218,8 @@ class CheMenuService
}
}
SimpleLogs::writeLog('数据解析结束。数据:'.json_encode($productPageContent, JSON_UNESCAPED_UNICODE), 'chemenu info', 'info');
$randomFloat = 2 + mt_rand(0, 2) + (mt_rand(0, 999) / 1000);
usleep($randomFloat * 1000000); // 微秒级延迟
//$randomFloat = 2 + mt_rand(0, 2) + (mt_rand(0, 999) / 1000);
//usleep($randomFloat * 1000000); // 微秒级延迟
$this->apiService->saveProduct($productPageContent);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment