From 36bf2224c028650f5a74077f7243fe26ec15b8ba Mon Sep 17 00:00:00 2001 From: ASUS <515617283@qq.com> Date: Wed, 3 Dec 2025 13:22:00 +0800 Subject: [PATCH] group_id --- app/chat/controller/GroupController.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/chat/controller/GroupController.php b/app/chat/controller/GroupController.php index be8ca0b..fe07ceb 100644 --- a/app/chat/controller/GroupController.php +++ b/app/chat/controller/GroupController.php @@ -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()); }