消息中心提交
This commit is contained in:
@@ -30,7 +30,6 @@ class KfNoticeCommand extends Command
|
||||
protected function execute(Input $input, Output $output)
|
||||
{
|
||||
$output->writeln('开始处理消息通知任务...');
|
||||
|
||||
$where = [
|
||||
['isRemind', '=', 0],
|
||||
['reminderTime', '<=', time()],
|
||||
@@ -41,6 +40,7 @@ class KfNoticeCommand extends Command
|
||||
$followUp = FollowUp::where($where)->alias('a')
|
||||
->field('a.*,f.nickname,f.avatar,f.alias,f.wechatId')
|
||||
->join(['s2_wechat_friend f'], 'a.friendId = f.id')
|
||||
->where('isRemind',0)
|
||||
->select();
|
||||
if (!empty($followUp)) {
|
||||
foreach ($followUp as $k => $v) {
|
||||
@@ -81,6 +81,7 @@ class KfNoticeCommand extends Command
|
||||
$toDo = ToDo::where($where)->alias('a')
|
||||
->field('a.*,f.nickname,f.avatar,f.alias,f.wechatId')
|
||||
->join(['s2_wechat_friend f'], 'a.friendId = f.id')
|
||||
->where('isRemind',0)
|
||||
->select();
|
||||
if (!empty($toDo)) {
|
||||
foreach ($toDo as $k => $v) {
|
||||
|
||||
Reference in New Issue
Block a user