mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-06-07 02:12:25 +08:00
应用初始化新增中间件处理
This commit is contained in:
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user