Merge branch 'develop/wap' of git.dev.yoho.cn:web/yohobuy into develop/wap
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -41,7 +41,7 @@ class HfController extends AbstractAction | @@ -41,7 +41,7 @@ class HfController extends AbstractAction | ||
41 | * patchv 当前补丁的版本号,没有就传空 string "100" | 41 | * patchv 当前补丁的版本号,没有就传空 string "100" |
42 | * filecode md5(md5(文件内容) + "yohopatch2016") string "1233321121212332" | 42 | * filecode md5(md5(文件内容) + "yohopatch2016") string "1233321121212332" |
43 | * ] | 43 | * ] |
44 | - * echo md5(file_get_contents('http://cdn.yoho.cn/app-hotfix/yohobuy/4.0.0/main.js')); | 44 | + * echo md5(file_get_contents('http://cdn.yoho.cn/app-hotfix/yohobuy/4.0.0/main2.js')); |
45 | */ | 45 | */ |
46 | public function v1Action() | 46 | public function v1Action() |
47 | { | 47 | { |
@@ -51,7 +51,7 @@ class HfController extends AbstractAction | @@ -51,7 +51,7 @@ class HfController extends AbstractAction | ||
51 | $version = $this->post('app_version'); | 51 | $version = $this->post('app_version'); |
52 | switch ($version) { | 52 | switch ($version) { |
53 | case '4.0.0': // 版本号 | 53 | case '4.0.0': // 版本号 |
54 | - $result['data']['url'] = 'http://cdn.yoho.cn/app-hotfix/yohobuy/4.0.0/main.js'; | 54 | + $result['data']['url'] = 'http://cdn.yoho.cn/app-hotfix/yohobuy/4.0.0/main2.js'; |
55 | $result['data']['patchv'] = '102'; | 55 | $result['data']['patchv'] = '102'; |
56 | $result['data']['filecode'] = md5('53b86b14490ead50ff78cac30a2494f3' . 'yohopatch2016'); | 56 | $result['data']['filecode'] = md5('53b86b14490ead50ff78cac30a2494f3' . 'yohopatch2016'); |
57 | $result['md5'] = md5(self::PRIVATE_KEY . ':' . json_encode($result['data'])); | 57 | $result['md5'] = md5(self::PRIVATE_KEY . ':' . json_encode($result['data'])); |
-
Please register or login to post a comment