更新功能

This commit is contained in:
2019-07-10 16:17:51 +08:00
parent 79800d9fcc
commit 5046d8374a
10 changed files with 131 additions and 26 deletions
+13
View File
@@ -33,4 +33,17 @@ class Admin extends BaseController {
$this->data['config'] = $config;
}
protected function success($msg, $url){
$this->data['code'] = 0;
$this->data['msg'] = $msg;
$this->data['url'] = $url->__toString();
return $this->data;
}
protected function error($msg, $url){
$this->data['code'] = 1;
$this->data['msg'] = $msg;
$this->data['url'] = $url->__toString();
return $this->data;
}
}