目录结构调整

This commit is contained in:
2016-06-30 16:53:58 +08:00
parent 7eaa319115
commit 52f669abec
107 changed files with 4600 additions and 476 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());
}