应用初始化新增中间件处理

This commit is contained in:
devil_gong
2019-01-16 11:46:45 +08:00
parent fca4b184b2
commit 9bf240e4fe
6 changed files with 102 additions and 71 deletions

View File

@ -13,7 +13,6 @@ namespace app\api\controller;
use think\Controller;
use app\service\ConfigService;
use app\service\UserService;
use app\service\OtherService;
/**
* 接口公共控制器
@ -61,27 +60,6 @@ class Common extends Controller
// 公共数据初始化
$this->CommonInit();
// 其它处理
$this->OtherHandle();
}
/**
* 其它处理
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2018-12-07
* @desc description
*/
private function OtherHandle()
{
// 环境检查
$ret = OtherService::EnvironmentCheck();
if($ret['code'] != 0)
{
exit(json_encode($ret));
}
}
/**