Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
331a9b36d996b3d060718074bc49edd3e4332fd8
1 parent
3da1af53
code review by fei.hong : do modify app call api hotfix test url link
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
yohobuy/m.yohobuy.com/application/controllers/Hf.php
yohobuy/m.yohobuy.com/application/controllers/Hf.php
View file @
331a9b3
...
...
@@ -41,6 +41,7 @@ class HfController extends AbstractAction
* patchv 当前补丁的版本号,没有就传空 string "100"
* filecode md5(md5(文件内容) + "yohopatch2016") string "1233321121212332"
* ]
* echo md5(file_get_contents('http://ad.yoho.cn/test/main.js'));
*/
public
function
v1Action
()
{
...
...
@@ -50,10 +51,9 @@ class HfController extends AbstractAction
$version
=
$this
->
post
(
'app_version'
);
switch
(
$version
)
{
case
'4.0.0'
:
// 版本号
case
'3.8.0'
:
$result
[
'data'
][
'url'
]
=
'http://cdn.yoho.cn/analysis/v1/js/om_code.js'
;
$result
[
'data'
][
'url'
]
=
'http://ad.yoho.cn/test/main.js'
;
$result
[
'data'
][
'patchv'
]
=
'100'
;
$result
[
'data'
][
'filecode'
]
=
md5
(
'
496c71eb82ce76410d5e0b3a74c02b4
3'
.
'yohopatch2016'
);
$result
[
'data'
][
'filecode'
]
=
md5
(
'
cad1d319b791da3317aefb49356518d
3'
.
'yohopatch2016'
);
$result
[
'md5'
]
=
md5
(
self
::
PRIVATE_KEY
.
':'
.
json_encode
(
$result
[
'data'
]));
break
;
default
:
// 默认
...
...
Please
register
or
login
to post a comment