...
|
...
|
@@ -49,19 +49,18 @@ class RnController extends AbstractAction |
|
|
// 根据版本号返回补丁文件信息
|
|
|
$version = $this->post('app_version');
|
|
|
switch ($version) {
|
|
|
case '4.0.0': // 版本号
|
|
|
$result['data']['url'] = '';
|
|
|
$result['data']['rnv'] = '';
|
|
|
$result['data']['minv'] = '';
|
|
|
// $result['data']['filecode'] = md5('b3e54e59cb41453623360a55e9588361' . 'yohorn2016');
|
|
|
$result['data']['filecode'] = '';
|
|
|
case '4.0.1': // 版本号
|
|
|
$result['data']['url'] = 'http://cdn.yoho.cn/app-reactnative/4.0.1/main.zip';
|
|
|
$result['data']['rnv'] = '101';
|
|
|
$result['data']['minv'] = '4.0.1';
|
|
|
$result['data']['filecode'] = md5('dffb998e43a33215b4c47a4ccd3cf619' . 'yohorn2016');
|
|
|
$result['md5'] = md5(self::PRIVATE_KEY . ':' . json_encode($result['data']));
|
|
|
break;
|
|
|
case '4.1.0': // 版本号
|
|
|
$result['data']['url'] = 'http://cdn.yoho.cn/app-downfiles/index.android.bundle.zip';
|
|
|
$result['data']['rnv'] = '101';
|
|
|
$result['data']['minv'] = '4.1.0';
|
|
|
$result['data']['filecode'] = md5('dffb998e43a33215b4c47a4ccd3cf619' . 'yohorn2016');
|
|
|
$result['data']['filecode'] = md5('47c47db1eec6159f940e2018d3a83676' . 'yohorn2016');
|
|
|
$result['md5'] = md5(self::PRIVATE_KEY . ':' . json_encode($result['data']));
|
|
|
break;
|
|
|
default: // 默认
|
...
|
...
|
|