删除文件不处理储存策略删除接口返回值

This commit is contained in:
WispX
2020-02-29 23:45:40 +08:00
parent 3576d40dc9
commit c8e4848620
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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('批量删除失败');
}
}
}
@@ -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('批量删除失败');
}
}
}