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('批量删除失败'); } } }