From e07e512d053bfb9615d68e50bd7c0c47d48feffb Mon Sep 17 00:00:00 2001 From: liaofei <136327134@qq.com> Date: Wed, 26 Apr 2023 16:38:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90=E7=9A=84=E6=97=B6=E5=80=99?= =?UTF-8?q?=E4=BC=AA=E5=88=A0=E9=99=A4=E6=94=B9=E4=B8=BA=E7=9C=9F=E5=88=A0?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/dao/system/SystemRouteDao.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crmeb/app/dao/system/SystemRouteDao.php b/crmeb/app/dao/system/SystemRouteDao.php index 9f36601ba..afc45f175 100644 --- a/crmeb/app/dao/system/SystemRouteDao.php +++ b/crmeb/app/dao/system/SystemRouteDao.php @@ -47,6 +47,8 @@ class SystemRouteDao extends BaseDao */ public function deleteRoutes(array $ids) { - return $this->getModel()->where('id', 'in', $ids)->delete(); + return $this->getModel()::destroy(function ($q) use ($ids) { + $q->whereIn('id', $ids); + }, true); } }