diff --git a/app/Console/Commands/DmaQuestionNotice.php b/app/Console/Commands/DmaQuestionNotice.php index 6d75f2b..54a9144 100644 --- a/app/Console/Commands/DmaQuestionNotice.php +++ b/app/Console/Commands/DmaQuestionNotice.php @@ -146,8 +146,11 @@ class DmaQuestionNotice extends Command $day = CommonService::diffDays($nowDate, $log_at); Log::info("订单id:" . $order->id . " day=" . $day); if ($day >= 60 && $day <= 70 && $day % 3 == 0 && $order->group && $order->group->im_chat_id) { - $imMsg = new Msg(config('chat.im.app_id'), config('chat.im.app_secret')); - $imMsg->sendMsg(make_wangyiyun_accid($order->group->owner_id), 1, $order->group->im_chat_id, 0, json_encode(['msg' => "【{$order->name}】请抽空完成方案后服务问卷,您的反馈非常重要,可以帮助我们了解您方案中的感受,感谢您的支持!"])); + // $imMsg = new Msg(config('chat.im.app_id'), config('chat.im.app_secret')); + // $imMsg->sendMsg(make_wangyiyun_accid($order->group->owner_id), 1, $order->group->im_chat_id, 0, json_encode(['msg' => "【{$order->name}】请抽空完成方案后服务问卷,您的反馈非常重要,可以帮助我们了解您方案中的感受,感谢您的支持!"])); + $chatService = new ChatService(); + $msg = "提醒【{$order->name}】抽空完成方案后服务问卷"; + $chatService->sendImMsgUserToUser($order->id, '系统通知', $msg, '', '', [ServiceRole::MAIN_COACH, ServiceRole::COACH, ServiceRole::CUSTOMER], [], []); } }