This commit is contained in:
2025-12-03 13:22:00 +08:00
parent 1f06888915
commit 36bf2224c0

View File

@@ -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());
}