修改群呼监听

This commit is contained in:
lilong@dgg.net 2021-04-14 09:08:38 +08:00
parent 9916633d88
commit 5e6b2a6dea
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ class SwooleCallcenterRun extends Command
break;
}
foreach ($calls as $call){
go(function () use ($call,$task){
\Swoole\Coroutine::create(function () use ($call,$task){
(new Callcenter($call,$task))->run();
});
sleep(2);

View File

@ -112,7 +112,7 @@ class Callcenter
$this->call->update([
'billsec' => $billsec,
]);
break;
break 2;
default:
}
}