Explorar el Código

修复:RoleMenu模型deleteAll报错

Yahoo hace 4 años
padre
commit
5c3c338bfe
Se han modificado 1 ficheros con 1 adiciones y 12 borrados
  1. 1 12
      app/store/model/store/RoleMenu.php

+ 1 - 12
app/store/model/store/RoleMenu.php

@@ -85,19 +85,8 @@ class RoleMenu extends RoleMenuModel
      * @param array $roleIds 角色ID集
      * @return array
      */
-    public static function getMenuIds(array $roleIds)
+    public static function getMenuIds(array $roleIds): array
     {
         return (new self)->where('role_id', 'in', $roleIds)->column('menu_id');
     }
-
-    /**
-     * 删除记录
-     * @param array $where
-     * @return int
-     */
-    public static function deleteAll(array $where)
-    {
-        return (new static)->where($where)->delete();
-    }
-
 }