会话列表 edit

This commit is contained in:
2025-12-03 16:52:42 +08:00
parent a81a49cb38
commit c5ae429de1

View File

@@ -23,7 +23,10 @@ class GroupController extends ApiController
if (empty($group_id)) {
return $this->error('参数不存在');
}
return $this->success(Db::name('chat_group')->where(['id' => $group_id, 'owner_id' => $this->uid])->find());
$data = Db::name('chat_group')->where(['id' => $group_id, 'owner_id' => $this->uid])->find();
$mute = Db::name('chat_group_mute')->where(['group_id' => $group_id, 'user_id' => 0])->find();
$data['is_mute'] = $mute?1:0;
return $this->success($data);
}