From 7223604699c0df93fe4cb326eb71c1d2177ee0b4 Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Thu, 23 Mar 2023 10:53:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E6=92=AD=E5=88=A0=E9=99=A4=E4=B9=8B?= =?UTF-8?q?=E5=90=8E=E6=97=A0=E6=B3=95=E9=87=8D=E6=96=B0=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/services/activity/live/LiveAnchorServices.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crmeb/app/services/activity/live/LiveAnchorServices.php b/crmeb/app/services/activity/live/LiveAnchorServices.php index b360ab7cd..304f56c3e 100644 --- a/crmeb/app/services/activity/live/LiveAnchorServices.php +++ b/crmeb/app/services/activity/live/LiveAnchorServices.php @@ -92,10 +92,13 @@ class LiveAnchorServices extends BaseServices * @param int $id * @param array $data * @return mixed + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException */ public function save(int $id, array $data) { - $liveAnchor = $this->dao->get(['wechat' => $data['wechat']]); + $liveAnchor = $this->dao->get(['wechat' => $data['wechat'], 'is_del' => 0]); if (!MiniProgramService::getRoleList(2, 0, 30, $data['wechat'])) { throw new AdminException(400426); }