Authored by hf

code review by fei.hong: do modify app hotfix api

@@ -50,12 +50,12 @@ class HfController extends AbstractAction @@ -50,12 +50,12 @@ class HfController extends AbstractAction
50 // 根据版本号返回补丁文件信息 50 // 根据版本号返回补丁文件信息
51 $version = $this->post('app_version'); 51 $version = $this->post('app_version');
52 switch ($version) { 52 switch ($version) {
53 - case '4.0.1': // 版本  
54 - $result['data']['url'] = 'http://cdn.yoho.cn/app-hotfix/yohobuy/4.0.1/main-6.js';  
55 - $result['data']['patchv'] = '104';  
56 - $result['data']['filecode'] = md5('724a4bf20c515b4f55226c04551f3b7f' . 'yohopatch2016');  
57 - $result['md5'] = md5(self::PRIVATE_KEY . ':' . json_encode($result['data']));  
58 - break; 53 +// case '4.0.1': // 版本
  54 +// $result['data']['url'] = 'http://cdn.yoho.cn/app-hotfix/yohobuy/4.0.1/main-6.js';
  55 +// $result['data']['patchv'] = '104';
  56 +// $result['data']['filecode'] = md5('724a4bf20c515b4f55226c04551f3b7f' . 'yohopatch2016');
  57 +// $result['md5'] = md5(self::PRIVATE_KEY . ':' . json_encode($result['data']));
  58 +// break;
59 case '4.0.0': // 版本 59 case '4.0.0': // 版本
60 $result['data']['url'] = 'http://cdn.yoho.cn/app-hotfix/yohobuy/4.0.0/main2.js'; 60 $result['data']['url'] = 'http://cdn.yoho.cn/app-hotfix/yohobuy/4.0.0/main2.js';
61 $result['data']['patchv'] = '102'; 61 $result['data']['patchv'] = '102';