mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update AutoService.php
This commit is contained in:
parent
2ffe53fa6f
commit
6dc658d60f
@ -23,9 +23,8 @@ class AutoService extends Service
|
|||||||
public function register(string $openid)
|
public function register(string $openid)
|
||||||
{
|
{
|
||||||
foreach ($this->app->db->name('WechatAuto')->where(['status' => 1])->order('time asc')->cursor() as $vo) {
|
foreach ($this->app->db->name('WechatAuto')->where(['status' => 1])->order('time asc')->cursor() as $vo) {
|
||||||
$time = $this->parseTimeString($vo['time']);
|
[$name, $time] = ["推送客服消息 {$vo['code']}#{$openid}", $this->parseTimeString($vo['time'])];
|
||||||
$name = "向 {$openid} 推送 {$vo['code']} 客服消息";
|
QueueService::instance()->register($name, "xadmin:fansmsg {$openid} {$vo['code']}", $time, [], 1);
|
||||||
QueueService::instance()->register($name, "xadmin:fansmsg {$openid} {$vo['code']}", $time);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user