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