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
0c59b541
Commit
0c59b541
authored
Sep 14, 2018
by
zhz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setting
parent
2120fbca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
SettingService.php
application/models/Business/Common/SettingService.php
+2
-2
No files found.
application/models/Business/Common/SettingService.php
100755 → 100644
View file @
0c59b541
...
...
@@ -9,8 +9,8 @@ class SettingServiceModel extends \Business\AbstractModel{
$settingDAO
=
\DAO\SettingModel
::
getInstance
();
$type
==
0
?
$version
=
$settingDAO
->
getListCache
(
array
(
'android_version'
,
'android_apk'
))
:
$version
=
$settingDAO
->
getListCache
(
array
(
'ios_version'
));
if
(
$version
[
'android_version'
])
{
$
host
=
'http://testadmin.shenbd.com'
;
return
array
(
'version'
=>
$version
[
'android_version'
],
'url'
=>
$
host
.
'/mall/index.php?act=desc&op=upload&file_name='
.
$version
[
'android_apk'
]
);
$
url
=
\Our\Common
::
getStaticFile
(
$version
[
'android_apk'
],
'apk/'
)
;
return
array
(
'version'
=>
$version
[
'android_version'
],
'url'
=>
$
url
);
}
return
array
(
'version'
=>
$version
[
'ios_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