修复图片删除报错

This commit is contained in:
锟斤拷 2020-03-09 15:18:29 +08:00 committed by Gitee
parent ea7a7761b4
commit 3997c108e1

View File

@ -114,7 +114,9 @@ class Images extends AuthController
if(empty($post['imageid'] ))
Json::fail('还没选择要删除的图片呢?');
foreach ($post['imageid'] as $v){
self::deleteimganddata($v);
if(!empty($v)){
self::deleteimganddata($v);
}
}
Json::successful('删除成功');
}