后台代码格式化,内核更新

This commit is contained in:
2016-08-29 16:51:13 +08:00
parent 1710eb742c
commit dff622f0ac
21 changed files with 842 additions and 838 deletions

View File

@@ -275,10 +275,8 @@ class Addons extends Admin {
//超级管理员删除钩子
public function delhook() {
$id = input('id', '', 'trim,intval');
$ids = input('post.ids/a', array());
array_push($ids, $id);
$map['id'] = array('IN', $ids);
$id = $this->getArrayParam('id');
$map['id'] = array('IN', $id);
$result = $this->hooks->where($map)->delete();
if ($result !== false) {
return $this->success('删除成功');