Commit b45125b5 authored by hj's avatar hj

更新提交

parent b1edc6c8
...@@ -94,12 +94,12 @@ class CheMenuService ...@@ -94,12 +94,12 @@ class CheMenuService
SimpleLogs::writeLog('分类页面抓取结束', 'chemenu info', 'info'); SimpleLogs::writeLog('分类页面抓取结束', 'chemenu info', 'info');
break; break;
} }
}
}
$randomFloat = 3 + mt_rand(0, 3) + (mt_rand(0, 999) / 1000); $randomFloat = 3 + mt_rand(0, 3) + (mt_rand(0, 999) / 1000);
usleep($randomFloat * 1000000); // 微秒级延迟 usleep($randomFloat * 1000000); // 微秒级延迟
} }
} }
}
}
}catch(\Throwable $exception){ }catch(\Throwable $exception){
SimpleLogs::writeLog($exception->getMessage(), 'chemenu error', 'error'); SimpleLogs::writeLog($exception->getMessage(), 'chemenu error', 'error');
} }
......
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