正在显示
1 个修改的文件
包含
8 行增加
和
6 行删除
@@ -35,15 +35,17 @@ class LoadController extends HomeBaseController | @@ -35,15 +35,17 @@ class LoadController extends HomeBaseController | ||
35 | if(empty($param['RequestType'])){ | 35 | if(empty($param['RequestType'])){ |
36 | $this->error('error'); | 36 | $this->error('error'); |
37 | } | 37 | } |
38 | - if($param['RequestType'] != 102){ | 38 | + if($param['RequestType'] != 101){ |
39 | $this->error('error'); | 39 | $this->error('error'); |
40 | } | 40 | } |
41 | cache('param',$param); | 41 | cache('param',$param); |
42 | + $result = json_decode($param['RequestData'],true); | ||
42 | $bird = config('bird'); | 43 | $bird = config('bird'); |
43 | - $arr['EBusinessID'] = 'test'.$bird['EBusinessID']; | ||
44 | - $arr['UpdateTime'] = date('Y-m-d H:i:s',time()); | ||
45 | - $arr['Success'] = true; | ||
46 | - $arr['Reason'] = ""; | ||
47 | - return json_encode($arr); | 44 | + echo '{ |
45 | + "EBusinessID": "'.$result[0]['EBusinessID'].'", | ||
46 | + "UpdateTime": "'. date('Y-m-d H:i:s', time()) .'", | ||
47 | + "Success": "'. true .'", | ||
48 | + "Reason": "'. 123 .'" | ||
49 | + }'; | ||
48 | } | 50 | } |
49 | } | 51 | } |
-
请 注册 或 登录 后发表评论