Common.php 647 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace app\admin\controller\shopro;
  3. use app\common\controller\Backend;
  4. use addons\shopro\controller\traits\Util;
  5. use addons\shopro\controller\traits\UnifiedToken;
  6. /**
  7. * shopro 基础控制器
  8. */
  9. class Common extends Backend
  10. {
  11. use Util, UnifiedToken;
  12. protected $model = null;
  13. public function _initialize()
  14. {
  15. parent::_initialize();
  16. if (check_env('yansongda', false)) {
  17. set_addon_config('epay', ['version' => 'v3'], false);
  18. }
  19. $is_pro = check_env('commission', false);
  20. \think\View::share('is_pro', $is_pro);
  21. $this->assignconfig("is_pro", $is_pro);
  22. }
  23. }