group
This commit is contained in:
parent
c2a25a472f
commit
7c9ac20e9f
@ -114,6 +114,15 @@ class OfflineOrderController extends Controller
|
||||
·服务团队将陆续进群为您提供支持,祝您健康之旅顺利! 🌹🌹";
|
||||
|
||||
$group->autoCreateChatV2($offline_order->order_id, $group_name, $request->service_type, $announcement);
|
||||
} else if ($request->service_type == 2) { // 双证群
|
||||
$group_name = $offline_order->name . "双证咨询服务群";
|
||||
$announcement = "😊 本群是您的双证咨询服务群
|
||||
|
||||
👏 让我们一起携手创造快乐温馨的学习氛围,祝福您在此有一个美好的健康生活之旅
|
||||
|
||||
【请勿讨论政治、宗教或发广告】";
|
||||
$group->autoCreateChatV2($offline_order->order_id, $group_name, $request->service_type, $announcement);
|
||||
|
||||
}
|
||||
|
||||
// 是否自动拉人入群
|
||||
@ -140,8 +149,10 @@ class OfflineOrderController extends Controller
|
||||
ChatService::sendImMessage($owner_accid_id, $ope, $group->im_chat_id, $type, $body);
|
||||
|
||||
// 确认已缴费流程
|
||||
if ($request->service_type == 1 || $request->service_type == 3) {
|
||||
DmaProcessLog::addUserProcessLog($user_id, $offline_order->order_id ?? 0, 1, "admin_check_pay_status", "行政确认用户已缴费", auth()->user()->id, 4);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -114,11 +114,15 @@ class Group extends BaseModel
|
||||
DB::beginTransaction();
|
||||
$order = Order::where('id', $order_id)->first();
|
||||
//生成规则都是一样的,这里就不查数据库了
|
||||
if ($service_type == 2) {
|
||||
$owner_id = 15536; // 群主 小福同学
|
||||
$customer = 1620; // 客服 海静
|
||||
$members = [$customer, $order->user_id];
|
||||
} else {
|
||||
$owner_id = 8;
|
||||
if (config('app.env') == "production") {
|
||||
$owner_id = 3675;
|
||||
}
|
||||
$owner_ac_cid = make_wangyiyun_accid($owner_id);
|
||||
|
||||
$members = [7];
|
||||
if (config('app.env') == "production") {
|
||||
@ -127,6 +131,9 @@ class Group extends BaseModel
|
||||
if ($order->user_id > 0) {
|
||||
$members = array_merge($members, [$order->user_id]);
|
||||
}
|
||||
}
|
||||
$owner_ac_cid = make_wangyiyun_accid($owner_id);
|
||||
|
||||
|
||||
Log::info("autoCreateChat:" . json_encode($members));
|
||||
$im_members = [];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user