From c8e4848620919a2adddce3d4d5fb808bf6f007e3 Mon Sep 17 00:00:00 2001 From: WispX <1591788658@qq.com> Date: Sat, 29 Feb 2020 23:45:40 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8D=E5=A4=84=E7=90=86=E5=82=A8=E5=AD=98=E7=AD=96=E7=95=A5?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=8E=A5=E5=8F=A3=E8=BF=94=E5=9B=9E=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/controller/User.php | 4 ++-- application/index/controller/admin/Images.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/index/controller/User.php b/application/index/controller/User.php index 417d0140..f23e3f21 100644 --- a/application/index/controller/User.php +++ b/application/index/controller/User.php @@ -80,11 +80,11 @@ class User extends Base foreach ($deletes as $key => $val) { if (1 === count($val)) { if (!$strategy[$key]->delete(isset($val[0]) ? $val[0] : null)) { - throw new Exception('删除失败'); + // throw new Exception('删除失败'); } } else { if (!$strategy[$key]->deletes($val)) { - throw new Exception('批量删除失败'); + // throw new Exception('批量删除失败'); } } } diff --git a/application/index/controller/admin/Images.php b/application/index/controller/admin/Images.php index 469cc541..a9f7c3d8 100644 --- a/application/index/controller/admin/Images.php +++ b/application/index/controller/admin/Images.php @@ -105,11 +105,11 @@ class Images extends Base foreach ($deletes as $key => $val) { if (1 === count($val)) { if (!$strategy[$key]->delete(isset($val[0]) ? $val[0] : null)) { - throw new Exception('删除失败'); + // throw new Exception('删除失败'); } } else { if (!$strategy[$key]->deletes($val)) { - throw new Exception('批量删除失败'); + // throw new Exception('批量删除失败'); } } }