接口更新

This commit is contained in:
2020-05-09 22:29:41 +08:00
parent dd64af9482
commit 6249dc9b5e
5 changed files with 116 additions and 6 deletions

View File

@@ -41,8 +41,13 @@ class Base {
public function __construct(App $app) {
$this->app = $app;
$this->request = $this->app->request;
// 控制器初始化
$this->initialize();
}
// 初始化
protected function initialize() {}
protected function success($msg, $url = '') {
$this->data['code'] = 1;
$this->data['msg'] = $msg;