group_id
This commit is contained in:
@@ -19,12 +19,11 @@ class GroupController extends ApiController
|
||||
|
||||
public function info(Request $request): Response
|
||||
{
|
||||
Log::info('info' . $this->uid);
|
||||
$shop_id = $request->post('shop_id');
|
||||
if (empty($shop_id)) {
|
||||
$group_id = $request->post('group_id');
|
||||
if (empty($group_id)) {
|
||||
return $this->error('参数不存在');
|
||||
}
|
||||
return $this->success(Db::name('chat_group')->where(['shop_id' => $shop_id, 'owner_id' => $this->uid])->find());
|
||||
return $this->success(Db::name('chat_group')->where(['id' => $group_id, 'owner_id' => $this->uid])->find());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user