From abb3b17a51a292cbe5cc75f1f4be630b76aec479 Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Fri, 24 Mar 2023 10:58:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=A0=E9=81=93=E7=A0=81=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E4=B8=8B=E6=9C=89=E6=B8=A0=E9=81=93=E7=A0=81=EF=BC=8C=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/services/wechat/WechatQrcodeCateServices.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crmeb/app/services/wechat/WechatQrcodeCateServices.php b/crmeb/app/services/wechat/WechatQrcodeCateServices.php index ef46dabaa..306e7d47b 100644 --- a/crmeb/app/services/wechat/WechatQrcodeCateServices.php +++ b/crmeb/app/services/wechat/WechatQrcodeCateServices.php @@ -69,6 +69,8 @@ class WechatQrcodeCateServices extends BaseServices */ public function delCate($id = 0) { + $count = app()->make(WechatQrcodeServices::class)->count(['cate_id' => $id]); + if ($count) throw new AdminException(400454); if (!$id) throw new AdminException(100100); $res = $this->dao->update($id, ['is_del' => 1]); if (!$res) throw new AdminException(100008);