mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-13 20:02:49 +00:00
修复图片删除报错
This commit is contained in:
parent
ea7a7761b4
commit
3997c108e1
@ -114,7 +114,9 @@ class Images extends AuthController
|
|||||||
if(empty($post['imageid'] ))
|
if(empty($post['imageid'] ))
|
||||||
Json::fail('还没选择要删除的图片呢?');
|
Json::fail('还没选择要删除的图片呢?');
|
||||||
foreach ($post['imageid'] as $v){
|
foreach ($post['imageid'] as $v){
|
||||||
self::deleteimganddata($v);
|
if(!empty($v)){
|
||||||
|
self::deleteimganddata($v);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Json::successful('删除成功');
|
Json::successful('删除成功');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user