group
This commit is contained in:
parent
08495d956d
commit
62246bac32
@ -192,7 +192,11 @@ class OfflineOrderController extends Controller
|
||||
$group = new Group();
|
||||
|
||||
$chatName = $offline_order->name . "双证咨询服务群";
|
||||
$group->autoCreateCertChat($order->user_id, $chatName);
|
||||
$orderId = 0;
|
||||
if ($offline_order->price == 5800) {
|
||||
$orderId = $order->id;
|
||||
}
|
||||
$group->autoCreateCertChat($order->user_id, $chatName, $orderId);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@ -178,7 +178,7 @@ class Group extends BaseModel
|
||||
DB::commit();
|
||||
return;
|
||||
}
|
||||
public function autoCreateCertChat(int $userId, string $chatName)
|
||||
public function autoCreateCertChat(int $userId, string $chatName, $orderId = 0)
|
||||
{
|
||||
$icon = "https://images.health.ufutx.com/202411/15/2d117497b649f659d103069e10a785b9.jpeg";
|
||||
DB::beginTransaction();
|
||||
@ -217,7 +217,7 @@ class Group extends BaseModel
|
||||
//创建群
|
||||
$map = [];
|
||||
$map['name'] = $chatName;
|
||||
$map['order_id'] = 0;
|
||||
$map['order_id'] = $orderId;
|
||||
$map['avatar'] = $icon;
|
||||
$map['intro'] = $options['intro'];
|
||||
$map["announcement"] = $options['announcement'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user