修改群呼监听
This commit is contained in:
parent
9916633d88
commit
5e6b2a6dea
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ class Callcenter
|
|||
$this->call->update([
|
||||
'billsec' => $billsec,
|
||||
]);
|
||||
break;
|
||||
break 2;
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue