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

---
 app/portal/controller/LoadController.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/app/portal/controller/LoadController.php b/app/portal/controller/LoadController.php
index 481464a..ab3240d 100644
--- a/app/portal/controller/LoadController.php
+++ b/app/portal/controller/LoadController.php
@@ -27,10 +27,13 @@ class LoadController extends HomeBaseController
     }
     public function test(){
 
-        dump(cache('param'));
+        dump(json_decode(cache('param')['RequestData']));
     }
     public function notify(){
         $param = $this->request->param();
+        if(empty($param['RequestType'])){
+            $this->error('error');
+        }
         cache('param',$param);
         $bird = config('bird');
         $arr['EBusinessID'] = 'test'.$bird['EBusinessID'];
--
libgit2 0.24.0