Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenchuanwen
my-yaf-project
Commits
6185fc1d
Commit
6185fc1d
authored
Dec 10, 2018
by
christ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updateclient
parent
500d57e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
NameConst.php
application/library/Our/NameConst.php
+3
-2
SettingService.php
application/models/Business/Common/SettingService.php
+13
-2
No files found.
application/library/Our/NameConst.php
View file @
6185fc1d
...
...
@@ -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'
;
...
...
application/models/Business/Common/SettingService.php
View file @
6185fc1d
...
...
@@ -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'));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment