Explorar o código

生成的时候伪删除改为真删除

liaofei %!s(int64=2) %!d(string=hai) anos
pai
achega
e07e512d05
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      crmeb/app/dao/system/SystemRouteDao.php

+ 3 - 1
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);
     }
 }