12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace app\admin\controller\shopro;
- use app\common\controller\Backend;
- use addons\shopro\controller\traits\Util;
- use addons\shopro\controller\traits\UnifiedToken;
- /**
- * shopro 基础控制器
- */
- class Common extends Backend
- {
- use Util, UnifiedToken;
- protected $model = null;
- public function _initialize()
- {
- parent::_initialize();
- if (check_env('yansongda', false)) {
- set_addon_config('epay', ['version' => 'v3'], false);
- }
- $is_pro = check_env('commission', false);
- \think\View::share('is_pro', $is_pro);
- $this->assignconfig("is_pro", $is_pro);
- }
- }
|