Browse Source

修复:模型基类deleteAll方法报错

Yahoo 4 years ago
parent
commit
02929d18b7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      cores/BaseModel.php

+ 2 - 2
cores/BaseModel.php

@@ -213,9 +213,9 @@ abstract class BaseModel extends Model
      *           ['store_user_id', '=', $storeUserId],
      *           ['role_id', 'in', $deleteRoleIds]
      *        ]
-     * @return bool
+     * @return bool|int
      */
-    public static function deleteAll(array $where): bool
+    public static function deleteAll(array $where)
     {
         return (new static)->where($where)->delete();
     }