...
|
...
|
@@ -23,7 +23,7 @@ function start(){ |
|
|
foreach ($lists as $list){
|
|
|
|
|
|
// 占用 id
|
|
|
if(redis()->add('send_job_run_id_'.$list['id'],$list['id'])){
|
|
|
if(redis()->add('send_job_run_id_'.$list['id'],$list['id'],3600)){
|
|
|
go(function ($data) use (&$cNum){
|
|
|
$cNum++; // 协程数+1
|
|
|
// 表单数据
|
...
|
...
|
|