细节优化

feat/task1-c-wallet
gongfuxiang 2019-06-16 00:38:35 +08:00
parent 1177d3eb3a
commit 7bd32c03d0
3 changed files with 39 additions and 4 deletions

View File

@ -10,6 +10,7 @@
// +----------------------------------------------------------------------
namespace app\admin\controller;
use app\service\StoreService;
use app\service\PluginsAdminService;
/**
@ -90,8 +91,7 @@ class Pluginsadmin extends Common
$data = PluginsAdminService::PluginsList($data_params);
$this->assign('data_list', $data['data']);
$this->assign('store_url', config('shopxo.store_url').'?url='.urlencode(__MY_URL__));
$this->assign('store_url', StoreService::StoreUrl());
return $this->fetch();
} else {
return $this->fetch('upload');

View File

@ -10,7 +10,7 @@
// +----------------------------------------------------------------------
namespace app\admin\controller;
use app\service\StatisticalService;
use app\service\StoreService;
/**
* 应用商店
@ -48,7 +48,7 @@ class Store extends Common
*/
public function Index()
{
$this->assign('store_url', config('shopxo.store_url').'?url='.urlencode(__MY_URL__));
$this->assign('store_url', StoreService::StoreUrl());
return $this->fetch();
}
}

View File

@ -0,0 +1,35 @@
<?php
// +----------------------------------------------------------------------
// | ShopXO 国内领先企业级B2C免费开源电商系统
// +----------------------------------------------------------------------
// | Copyright (c) 2011~2019 http://shopxo.net All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Devil
// +----------------------------------------------------------------------
namespace app\service;
/**
* 应用商店服务层
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2019-06-16T00:33:28+0800
*/
class StoreService
{
/**
* 应用商店地址
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @datetime 2019-06-16T00:33:28+0800
* @param [array] $params [输入参数]
*/
public static function StoreUrl($params = [])
{
return config('shopxo.store_url').'?ver='.APPLICATION_VERSION.'&url='.urlencode(__MY_URL__);
}
}
?>