Commit 1fbab8fd authored by christ's avatar christ

storage

parent 36b56335
...@@ -155,6 +155,8 @@ class NameConst { ...@@ -155,6 +155,8 @@ class NameConst {
const goodsCollection = 'goodsCollection';//商品收藏数量 const goodsCollection = 'goodsCollection';//商品收藏数量
const footprint = 'footprint';//足迹数量 const footprint = 'footprint';//足迹数量
const clientUpdateUrl='shenbd.zip';
const leftBracket = '['; const leftBracket = '[';
const rightBracket = ']'; const rightBracket = ']';
const elasticName='elastic.master'; const elasticName='elastic.master';
......
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
namespace Business\Common; namespace Business\Common;
use Our\Common;
use Our\NameConst;
class SettingServiceModel extends \Business\AbstractModel{ class SettingServiceModel extends \Business\AbstractModel{
public function getCurrentVersion($param){ public function getCurrentVersion($param){
...@@ -22,7 +25,11 @@ class SettingServiceModel extends \Business\AbstractModel{ ...@@ -22,7 +25,11 @@ class SettingServiceModel extends \Business\AbstractModel{
public function getAppVersion(){ public function getAppVersion(){
$settingDAO = \DAO\SettingModel::getInstance(); $settingDAO = \DAO\SettingModel::getInstance();
$version = $settingDAO->getListCache(array('app_version')); $version = $settingDAO->getListCache(array('app_version'));
return array('version'=>$version['app_version']);
$updateUrl=\Bootstrap::getUrlIniConfig('ossHost');
$fileName='/'.NameConst::refund;
$updateUrl=$updateUrl.'/'.$fileName;
return array('version'=>$version['app_version'],'updateUrl'=>$updateUrl);
} }
public function getServicePhone(){ public function getServicePhone(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment