提交 7bd32c03 编写于 作者: G gongfuxiang

细节优化

上级 1177d3eb
......@@ -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');
......
......@@ -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();
}
}
......
<?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__);
}
}
?>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册