sen qustion notice

This commit is contained in:
Hankin 2026-03-25 16:18:41 +08:00
parent cd6c49fdf8
commit 2e1b2a5d40

View File

@ -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], [], []);
}
}