Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
9 years ago
Commit
7af2f6f584032b5dac42df763de5667a5085b59f
1 parent
9cc20acf
rn 版本号 秘钥
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
yohobuy/m.yohobuy.com/application/controllers/Rn.php
yohobuy/m.yohobuy.com/application/controllers/Rn.php
View file @
7af2f6f
...
...
@@ -49,19 +49,18 @@ class RnController extends AbstractAction
// 根据版本号返回补丁文件信息
$version
=
$this
->
post
(
'app_version'
);
switch
(
$version
)
{
case
'4.0.0'
:
// 版本号
$result
[
'data'
][
'url'
]
=
''
;
$result
[
'data'
][
'rnv'
]
=
''
;
$result
[
'data'
][
'minv'
]
=
''
;
// $result['data']['filecode'] = md5('b3e54e59cb41453623360a55e9588361' . 'yohorn2016');
$result
[
'data'
][
'filecode'
]
=
''
;
case
'4.0.1'
:
// 版本号
$result
[
'data'
][
'url'
]
=
'http://cdn.yoho.cn/app-reactnative/4.0.1/main.zip'
;
$result
[
'data'
][
'rnv'
]
=
'101'
;
$result
[
'data'
][
'minv'
]
=
'4.0.1'
;
$result
[
'data'
][
'filecode'
]
=
md5
(
'dffb998e43a33215b4c47a4ccd3cf619'
.
'yohorn2016'
);
$result
[
'md5'
]
=
md5
(
self
::
PRIVATE_KEY
.
':'
.
json_encode
(
$result
[
'data'
]));
break
;
case
'4.1.0'
:
// 版本号
$result
[
'data'
][
'url'
]
=
'http://cdn.yoho.cn/app-downfiles/index.android.bundle.zip'
;
$result
[
'data'
][
'rnv'
]
=
'101'
;
$result
[
'data'
][
'minv'
]
=
'4.1.0'
;
$result
[
'data'
][
'filecode'
]
=
md5
(
'
dffb998e43a33215b4c47a4ccd3cf619
'
.
'yohorn2016'
);
$result
[
'data'
][
'filecode'
]
=
md5
(
'
47c47db1eec6159f940e2018d3a83676
'
.
'yohorn2016'
);
$result
[
'md5'
]
=
md5
(
self
::
PRIVATE_KEY
.
':'
.
json_encode
(
$result
[
'data'
]));
break
;
default
:
// 默认
...
...
Please
register
or
login
to post a comment