Authored by hf

code review by fei.hong: do modify app hotfix api add patch version 4.0.1

@@ -45,6 +45,7 @@ class HfController extends AbstractAction @@ -45,6 +45,7 @@ class HfController extends AbstractAction
45 */ 45 */
46 public function v1Action() 46 public function v1Action()
47 { 47 {
  48 + echo md5(file_get_contents('http://cdn.yoho.cn/app-hotfix/yohobuy/4.0.1/main-2.js')); exit;
48 $result = array('code' => 200, 'message' => 'Config Success', 'md5' => '', 'data' => array()); 49 $result = array('code' => 200, 'message' => 'Config Success', 'md5' => '', 'data' => array());
49 50
50 // 根据版本号返回补丁文件信息 51 // 根据版本号返回补丁文件信息
@@ -53,7 +54,7 @@ class HfController extends AbstractAction @@ -53,7 +54,7 @@ class HfController extends AbstractAction
53 case '4.0.1': // 版本 54 case '4.0.1': // 版本
54 $result['data']['url'] = 'http://cdn.yoho.cn/app-hotfix/yohobuy/4.0.1/main.js'; 55 $result['data']['url'] = 'http://cdn.yoho.cn/app-hotfix/yohobuy/4.0.1/main.js';
55 $result['data']['patchv'] = '103'; 56 $result['data']['patchv'] = '103';
56 - $result['data']['filecode'] = md5('a0bb1f61c26ca8ed5dc19ab647715b1a' . 'yohopatch2016'); 57 + $result['data']['filecode'] = md5('0cef321b300df2f3b81de03a57b93433' . 'yohopatch2016');
57 $result['md5'] = md5(self::PRIVATE_KEY . ':' . json_encode($result['data'])); 58 $result['md5'] = md5(self::PRIVATE_KEY . ':' . json_encode($result['data']));
58 break; 59 break;
59 case '4.0.0': // 版本 60 case '4.0.0': // 版本