Authored by hf

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

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