dma
This commit is contained in:
parent
f6ae286a1e
commit
03cb247590
@ -133,6 +133,19 @@ class OfflineOrderController extends Controller
|
||||
|
||||
// 创建双证群
|
||||
$this->createCertGroup($offline_order);
|
||||
} else if ($request->service_type == 4) {
|
||||
//创建群记录
|
||||
$chat_id = $data['chat_id'] ?? null;
|
||||
Group::create(['name' => $offline_order->name . '服务群【减重版】', "service_type" => $request->service_type, 'order_id' => $offline_order->order_id, 'chat_id' => $chat_id]);
|
||||
$this->offlineOrderService->insertRoleData($chat_id, $offline_order->order_id);
|
||||
$group = new Group();
|
||||
$group_name = $offline_order->name . "服务群【减重版】";
|
||||
$announcement = "[友福同享]欢迎加入DMA服务群[减重版]!
|
||||
|
||||
·本群用于教练指导您的健康管理服务,请勿讨论政治、宗教或发布外部广告。
|
||||
|
||||
·服务团队将陆续进群为您提供支持,祝您健康之旅顺利!";
|
||||
$group->autoCreateChatV2($offline_order->order_id, $group_name, $request->service_type, $announcement);
|
||||
}
|
||||
|
||||
if ($request->service_type == 1 || $request->service_type == 3) {
|
||||
|
||||
@ -40,7 +40,7 @@ class OfflineOrderService
|
||||
$order = Order::create([
|
||||
'user_id' => $user_id,
|
||||
'type' => 'SERVICE',
|
||||
'type_id' => 1,
|
||||
'type_id' => $data["type_id"] ?? 1,
|
||||
'price' => $data['price'],
|
||||
'pay_status' => 'PAID',
|
||||
'trade_no' => $tradeNo,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user