Authored by hf

code review by fei.hong : do add app api Rn.php

1 <?php 1 <?php
  2 +
2 use Action\AbstractAction; 3 use Action\AbstractAction;
  4 +
3 /** 5 /**
4 * Created by PhpStorm. 6 * Created by PhpStorm.
5 * User: Leo 7 * User: Leo
6 * Date: 16/2/17 8 * Date: 16/2/17
7 * Time: 上午11:48 9 * Time: 上午11:48
8 */ 10 */
9 -  
10 -  
11 class RnController extends AbstractAction 11 class RnController extends AbstractAction
12 { 12 {
13 - const PRIVATE_KEY = 'fd4ad5fcsa0de589af23234ks1923ks';  
14 -  
15 -  
16 13
  14 + const PRIVATE_KEY = 'fd4ad5fcsa0de589af23234ks1923ks';
17 15
18 /** 16 /**
19 * V1版本 17 * V1版本
@@ -46,9 +44,8 @@ class RnController extends AbstractAction @@ -46,9 +44,8 @@ class RnController extends AbstractAction
46 */ 44 */
47 public function v1Action() 45 public function v1Action()
48 { 46 {
49 -  
50 $result = array('code' => 200, 'message' => 'Config Success', 'md5' => '', 'data' => array()); 47 $result = array('code' => 200, 'message' => 'Config Success', 'md5' => '', 'data' => array());
51 -s 48 +
52 // 根据版本号返回补丁文件信息 49 // 根据版本号返回补丁文件信息
53 $version = $this->post('app_version'); 50 $version = $this->post('app_version');
54 switch ($version) { 51 switch ($version) {
@@ -68,9 +65,6 @@ s @@ -68,9 +65,6 @@ s
68 } 65 }
69 66
70 $this->echoJson($result); 67 $this->echoJson($result);
71 -  
72 } 68 }
73 69
74 } 70 }
75 -  
76 -