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
hf
9 years ago
Commit
2a20bd497e34ca101a47755c074a41728fe13576
1 parent
bc082e17
code review by fei.hong: do modify app hotfix patch url
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
yohobuy/m.yohobuy.com/application/controllers/Hf.php
yohobuy/m.yohobuy.com/application/controllers/Hf.php
View file @
2a20bd4
...
...
@@ -41,7 +41,7 @@ class HfController extends AbstractAction
* patchv 当前补丁的版本号,没有就传空 string "100"
* filecode md5(md5(文件内容) + "yohopatch2016") string "1233321121212332"
* ]
* echo md5(file_get_contents('http://cdn.yoho.cn/app-hotfix/yohobuy/4.0.0/main.js'));
* echo md5(file_get_contents('http://cdn.yoho.cn/app-hotfix/yohobuy/4.0.0/main
2
.js'));
*/
public
function
v1Action
()
{
...
...
@@ -51,7 +51,7 @@ class HfController extends AbstractAction
$version
=
$this
->
post
(
'app_version'
);
switch
(
$version
)
{
case
'4.0.0'
:
// 版本号
$result
[
'data'
][
'url'
]
=
'http://cdn.yoho.cn/app-hotfix/yohobuy/4.0.0/main.js'
;
$result
[
'data'
][
'url'
]
=
'http://cdn.yoho.cn/app-hotfix/yohobuy/4.0.0/main
2
.js'
;
$result
[
'data'
][
'patchv'
]
=
'102'
;
$result
[
'data'
][
'filecode'
]
=
md5
(
'53b86b14490ead50ff78cac30a2494f3'
.
'yohopatch2016'
);
$result
[
'md5'
]
=
md5
(
self
::
PRIVATE_KEY
.
':'
.
json_encode
(
$result
[
'data'
]));
...
...
Please
register
or
login
to post a comment