diff --git a/app/portal/controller/LoadController.php b/app/portal/controller/LoadController.php index b74fd15..2a33ad5 100644 --- a/app/portal/controller/LoadController.php +++ b/app/portal/controller/LoadController.php @@ -35,15 +35,17 @@ class LoadController extends HomeBaseController if(empty($param['RequestType'])){ $this->error('error'); } - if($param['RequestType'] != 102){ + if($param['RequestType'] != 101){ $this->error('error'); } cache('param',$param); + $result = json_decode($param['RequestData'],true); $bird = config('bird'); - $arr['EBusinessID'] = 'test'.$bird['EBusinessID']; - $arr['UpdateTime'] = date('Y-m-d H:i:s',time()); - $arr['Success'] = true; - $arr['Reason'] = ""; - return json_encode($arr); + echo '{ + "EBusinessID": "'.$result[0]['EBusinessID'].'", + "UpdateTime": "'. date('Y-m-d H:i:s', time()) .'", + "Success": "'. true .'", + "Reason": "'. 123 .'" + }'; } } \ No newline at end of file