From 1b615e88b30c797ccba11d28f7f2bea07c17a26f Mon Sep 17 00:00:00 2001
From: 王晓刚 <wxg@bronet.cn>
Date: Sat, 8 Jun 2019 10:40:37 +0800
Subject: [PATCH] 接收推送消息

---
 app/portal/controller/LoadController.php | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

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
--
libgit2 0.24.0