Browse Source

fix bug

pull/16/head
xiaoz 6 years ago
parent
commit
6ba21e26ab
  1. 10
      functions/class/class.admin.php

10
functions/class/class.admin.php

@ -95,8 +95,9 @@
//完整的图片路径 //完整的图片路径
$imgpath = APP.$path; $imgpath = APP.$path;
//如果图片删除成功,将再次删除数据库 //如果图片删除成功,将再次删除数据库
//删除图片
if(unlink($imgpath)) { unlink($imgpath);
//删除数据库
$del = $database->delete("imginfo", [ $del = $database->delete("imginfo", [
"AND" => [ "AND" => [
"id" => $id "id" => $id
@ -104,11 +105,6 @@
]); ]);
echo 'ok'; echo 'ok';
} }
else{
echo '删除失败!';
}
}
//统计数据 //统计数据
function data() { function data() {
//获取当前月份 //获取当前月份

Loading…
Cancel
Save