后台批量操作bug修复

内核更新
This commit is contained in:
2016-07-11 12:03:55 +08:00
parent 195ec9417c
commit 6460d64ceb
19 changed files with 119 additions and 128 deletions

View File

@@ -97,11 +97,11 @@ class Seo extends Admin{
}
public function del(){
$id = input('id','','trim,intval');
if (!$id) {
$id = array_unique((array)$this->param['id']);
if (empty($id)) {
return $this->error("非法操作!");
}
$result = db('SeoRule')->where(array('id'=>$id))->delete();
$result = db('SeoRule')->where(array('id'=>array('IN',$id)))->delete();
if ($result) {
return $this->success("删除成功!");
}else{