Authored by hf

code review by fei.hong : do modify app call api hotfix test url link

... ... @@ -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('496c71eb82ce76410d5e0b3a74c02b43' . 'yohopatch2016');
$result['data']['filecode'] = md5('cad1d319b791da3317aefb49356518d3' . 'yohopatch2016');
$result['md5'] = md5(self::PRIVATE_KEY . ':' . json_encode($result['data']));
break;
default: // 默认
... ...