From 1833a735f9411a7b7198837265a130f2a779af35 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Fri, 18 Aug 2023 10:44:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BC=96=E8=BE=91=E8=BD=AC?= =?UTF-8?q?=E5=94=AE=E5=95=86=E5=93=81=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/community/Community.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/controller/api/community/Community.php b/app/controller/api/community/Community.php index 60f315da..4b5f108d 100644 --- a/app/controller/api/community/Community.php +++ b/app/controller/api/community/Community.php @@ -605,6 +605,8 @@ class Community extends BaseController if (!$communityInfo) { app('json')->fail('转售商品不存在'); } + $data = $this->checkParams(); + $this->checkUserAuth(); Db::startTrans(); try { $list = Db::name('resale')->where('community_id', $id)->where('is_del', 0)->where('status', 0)->select(); @@ -619,9 +621,6 @@ class Community extends BaseController Db::rollback(); return app('json')->fail('编辑转售商品失败'); } - - $data = $this->checkParams(); - $this->checkUserAuth(); $data['uid'] = $this->request->uid(); $res = $this->repository->create($data); return app('json')->success(['community_id' => $res]);