This commit is contained in:
Hankin 2026-08-12 11:07:48 +08:00
parent 90ab14330e
commit f4b08cc791

View File

@ -150,6 +150,10 @@ class ChatController extends Controller
return $this->failure('群聊不存在'); return $this->failure('群聊不存在');
} }
if ($group["service_type"] == 4) {
$group["service_type"] = 1;
}
//我在本群的昵称 //我在本群的昵称
$groupUser = GroupUser::query() $groupUser = GroupUser::query()
->where('user_id', $user->id) ->where('user_id', $user->id)
@ -178,7 +182,7 @@ class ChatController extends Controller
} }
// 当前用户id // 当前用户id
$group_user_id = 0; $group_user_id = 0;
if ($group["service_type"] == 1) { if ($group["service_type"] == 1 || $group["service_type"] == 4) {
$group_user_id = $group["order"]["user_id"]; $group_user_id = $group["order"]["user_id"];
} else if ($group["service_type"] == 2) { } else if ($group["service_type"] == 2) {
$group_user_id = Group::getGroupUserId($group["id"]); $group_user_id = Group::getGroupUserId($group["id"]);