www_fpvone_cn/application/shopro/Common.php

32 lines
647 B
PHP
Raw Permalink Normal View History

2024-12-20 12:29:51 +08:00
<?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);
}
}