...
|
...
|
@@ -51,10 +51,13 @@ 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-4.js';
|
|
|
$result['data']['patchv'] = '103';
|
|
|
$result['data']['filecode'] = md5('f9c03ec39cfb2686d2b778e444fb2306' . 'yohopatch2016');
|
|
|
$result['md5'] = md5(self::PRIVATE_KEY . ':' . json_encode($result['data']));
|
|
|
$uid = $this->post('uid');
|
|
|
if ($uid == 5448919) {
|
|
|
$result['data']['url'] = 'http://cdn.yoho.cn/app-hotfix/yohobuy/4.0.1/main-5.js';
|
|
|
$result['data']['patchv'] = '104';
|
|
|
$result['data']['filecode'] = md5('cf2e3b73963de5c0d538192ea8779458' . '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';
|
...
|
...
|
|