Authored by 郝肖肖

rn 版本号 秘钥

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