group_id
This commit is contained in:
@@ -19,12 +19,11 @@ class GroupController extends ApiController
|
|||||||
|
|
||||||
public function info(Request $request): Response
|
public function info(Request $request): Response
|
||||||
{
|
{
|
||||||
Log::info('info' . $this->uid);
|
$group_id = $request->post('group_id');
|
||||||
$shop_id = $request->post('shop_id');
|
if (empty($group_id)) {
|
||||||
if (empty($shop_id)) {
|
|
||||||
return $this->error('参数不存在');
|
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