目录调整

bug修复
This commit is contained in:
2016-06-29 21:23:48 +08:00
parent 7eaa319115
commit 202a13a47f
72 changed files with 3155 additions and 166 deletions

View File

@@ -244,14 +244,9 @@ class Addons extends Admin {
public function addhook(){
$hooks = model('Hooks');
if (IS_POST) {
$data = input();
if ($data) {
$result = $hooks->change($data);
if ($result !== false) {
return $this->success("修改成功");
}else{
return $this->error($hooks->getError());
}
$result = $hooks->change();
if ($result !== false) {
return $this->success("修改成功");
}else{
return $this->error($hooks->getError());
}
@@ -270,14 +265,9 @@ class Addons extends Admin {
public function edithook($id){
$hooks = model('Hooks');
if (IS_POST) {
$data = input('post.');
if ($data) {
$result = $hooks->change($data);
if ($result !== false) {
return $this->success("修改成功");
}else{
return $this->error($hooks->getError());
}
$result = $hooks->change();
if ($result !== false) {
return $this->success("修改成功");
}else{
return $this->error($hooks->getError());
}