You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
647 B
32 lines
647 B
9 months ago
|
<?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);
|
||
|
}
|
||
|
}
|