Commit 368b211b authored by christ's avatar christ

version

parent 818257a4
...@@ -423,10 +423,11 @@ class ApiConst ...@@ -423,10 +423,11 @@ class ApiConst
const set = 2; const set = 2;
//桌面最新版本 //桌面最新版本
const xpClietnAppVersion='1.0.4'; const xpClientAppVersion='1.0.4';
const winClientAppVersion='1.0.4'; const winClientAppVersion='1.0.4';
const xpClientAppVersionOnline='1.0.0';
//微信小程序是否发布 const winClientAppVersionOnline='1.0.0';
//微信小是否发布
const isWxPublish = 0; const isWxPublish = 0;
//消息模板类型 //消息模板类型
......
...@@ -26,21 +26,23 @@ class SettingServiceModel extends \Business\AbstractModel{ ...@@ -26,21 +26,23 @@ class SettingServiceModel extends \Business\AbstractModel{
public function getAppVersion($data){ public function getAppVersion($data){
$settingDAO = \DAO\SettingModel::getInstance(); $settingDAO = \DAO\SettingModel::getInstance();
$version=array(); $version=array();
$version['app_version'] = ApiConst::xpClietnAppVersion;
if($data['opSystem']==NameConst::xp){ if($data['opSystem']==NameConst::xp){
$version['app_version']=ApiConst::xpClietnAppVersion;
if(APP_ENV=='pre'){ if(APP_ENV=='pre'){
$version['app_version'] = ApiConst::xpClientAppVersion;
$fileName='/'.NameConst::xpClientUpdateUrl; $fileName='/'.NameConst::xpClientUpdateUrl;
} }
if(APP_ENV=='product'|| APP_ENV=='productOne'){ if(APP_ENV=='product'|| APP_ENV=='productOne'){
$version['app_version'] = ApiConst::xpClientAppVersionOnline;
$fileName='/'.NameConst::xpOnlineClientUpdateUrl; $fileName='/'.NameConst::xpOnlineClientUpdateUrl;
} }
}else{ }else{
$version['app_version']=ApiConst::winClientAppVersion;
if(APP_ENV=='pre'){ if(APP_ENV=='pre'){
$version['app_version']=ApiConst::winClientAppVersion;
$fileName='/'.NameConst::clientUpdateUrl; $fileName='/'.NameConst::clientUpdateUrl;
} }
if(APP_ENV=='product'|| APP_ENV=='productOne'){ if(APP_ENV=='product'|| APP_ENV=='productOne'){
$version['app_version']=ApiConst::winClientAppVersionOnline;
$fileName='/'.NameConst::onlineClientUpdateUrl; $fileName='/'.NameConst::onlineClientUpdateUrl;
} }
......
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