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()); + } + + + /** * 创建群(仅商家可创建) */