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

---
 app/portal/controller/BirdController.php | 4 ++--
 app/portal/controller/LoadController.php | 5 +++++
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/app/portal/controller/BirdController.php b/app/portal/controller/BirdController.php
index ae86081..4a71a4f 100644
--- a/app/portal/controller/BirdController.php
+++ b/app/portal/controller/BirdController.php
@@ -212,9 +212,9 @@ class BirdController extends HomeBaseController
         $jsonResult = $this->orderTracesSubByJson($indent['order_number'],$indent['logistic_code'],$address);
         $result = json_decode($jsonResult,true);
         if(empty($result['Reason'])){
-            return dump($result);//订单轨迹
+            return ['code'=>20000,'msg'=>'SUCCESS'];//订单轨迹
         }else{
-            return $result['Reason'];
+            return ['code'=>40000,'msg'=>$result['Reason']];
         }
     }
 
diff --git a/app/portal/controller/LoadController.php b/app/portal/controller/LoadController.php
index 59b5435..c8e7aa0 100644
--- a/app/portal/controller/LoadController.php
+++ b/app/portal/controller/LoadController.php
@@ -25,4 +25,9 @@ class LoadController extends HomeBaseController
             }
         }
     }
+    public function notify(){
+        $param = $this->request->param();
+        cache($param);
+        echo 1;
+    }
 }
\ No newline at end of file
--
libgit2 0.24.0