会话列表 edit
This commit is contained in:
@@ -23,7 +23,10 @@ class GroupController extends ApiController
|
|||||||
if (empty($group_id)) {
|
if (empty($group_id)) {
|
||||||
return $this->error('参数不存在');
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user