Commit 6185fc1d authored by christ's avatar christ

updateclient

parent 500d57e4
......@@ -115,6 +115,7 @@ class NameConst {
const authInfoPrefix = 'authInfo_';
const allField = '*';
const desc = 'desc';
......@@ -156,9 +157,9 @@ class NameConst {
const footprint = 'footprint';//足迹数量
const clientUpdateUrl='shenbd.zip';
const onlineClientUpdateUrl='shenbdonline.zip';
const xpClientUpdateUrl='shendbxp.zip';
const xpOnlineClientUpdateUrl='shendbxponline.zip';
const leftBracket = '[';
const rightBracket = ']';
const elasticName='elastic.master';
......
......@@ -29,10 +29,21 @@ class SettingServiceModel extends \Business\AbstractModel{
$version['app_version'] = ApiConst::xpClietnAppVersion;
if($data['opSystem']==NameConst::xp){
$version['app_version']=ApiConst::xpClietnAppVersion;
$fileName='/'.NameConst::xpClientUpdateUrl;
if(APP_ENV=='pre'){
$fileName='/'.NameConst::xpClientUpdateUrl;
}
if(APP_ENV=='product'|| APP_ENV=='productOne'){
$fileName='/'.NameConst::xpOnlineClientUpdateUrl;
}
}else{
$version['app_version']=ApiConst::winClientAppVersion;
$fileName='/'.NameConst::clientUpdateUrl;
if(APP_ENV=='pre'){
$fileName='/'.NameConst::clientUpdateUrl;
}
if(APP_ENV=='product'|| APP_ENV=='productOne'){
$fileName='/'.NameConst::onlineClientUpdateUrl;
}
}
//$version = $settingDAO->getListCache(array('app_version'));
......
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