From 41587f11a7f629098ed8b9ef347336844cb59f72 Mon Sep 17 00:00:00 2001 From: ASUS <515617283@qq.com> Date: Tue, 2 Dec 2025 17:50:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=A4=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chat/controller/GroupController.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/chat/controller/GroupController.php b/app/chat/controller/GroupController.php index af3c963..44891dd 100644 --- a/app/chat/controller/GroupController.php +++ b/app/chat/controller/GroupController.php @@ -14,6 +14,19 @@ use support\think\Db; class GroupController extends ApiController { + + + public function info(Request $request): Response + { + $shop_id = $request->post('shop_id'); + if (empty($shop_id)) { + return $this->error('参数不存在'); + } + return $this->success(Db::name('chat_group')->where(['shop_id' => $shop_id])->find()); + } + + + /** * 创建群(仅商家可创建) */