后台批量操作bug修复
内核更新
This commit is contained in:
@@ -145,14 +145,12 @@ class Content extends Admin{
|
||||
* @author molong <ycgpp@126.com>
|
||||
*/
|
||||
public function del(){
|
||||
$id = input('id','','trim');
|
||||
$ids = input('post.ids',array());
|
||||
array_push($ids, $id);
|
||||
if (empty($ids)) {
|
||||
$id = array_unique((array)$this->param['id']);
|
||||
if (empty($id)) {
|
||||
return $this->error("非法操作!");
|
||||
}
|
||||
|
||||
$map['id'] = array('IN',$ids);
|
||||
$map['id'] = array('IN',$id);
|
||||
$result = $this->model->del($map);
|
||||
|
||||
if ($result) {
|
||||
|
||||
Reference in New Issue
Block a user