作者 王晓刚
1 个管道 的构建 通过 耗费 0 秒

接收推送消息

@@ -236,11 +236,11 @@ $configs = [ @@ -236,11 +236,11 @@ $configs = [
236 //快递鸟参数配置 236 //快递鸟参数配置
237 'bird'=>[ 237 'bird'=>[
238 //正式 238 //正式
239 - 'EBusinessID' => '1472267',//电商ID  
240 - 'AppKey' => 'cc8314fd-0381-4e37-ad17-239287f1d8d2',//AppKey 239 +// 'EBusinessID' => '1472267',//电商ID
  240 +// 'AppKey' => 'cc8314fd-0381-4e37-ad17-239287f1d8d2',//AppKey
241 //测试 241 //测试
242 -// 'EBusinessID' => 'test1472267',  
243 -// 'AppKey' => 'f84c7071-a6c7-48ce-8fe0-11b719d88a1d', 242 + 'EBusinessID' => 'test1472267',
  243 + 'AppKey' => 'f84c7071-a6c7-48ce-8fe0-11b719d88a1d',
244 ], 244 ],
245 //快递鸟预约取件接口寄件人参数 245 //快递鸟预约取件接口寄件人参数
246 'sender'=>[ 246 'sender'=>[
@@ -32,17 +32,18 @@ class LoadController extends HomeBaseController @@ -32,17 +32,18 @@ class LoadController extends HomeBaseController
32 public function notify(){ 32 public function notify(){
33 33
34 $param = $this->request->param(); 34 $param = $this->request->param();
35 - if(empty($param['RequestType'])){  
36 - $this->error('error');  
37 - }  
38 - if($param['RequestType'] != 101){  
39 - $this->error('error');  
40 - } 35 +// if(empty($param['RequestType'])){
  36 +// $this->error('error');
  37 +// }
  38 +// if($param['RequestType'] != 101){
  39 +// $this->error('error');
  40 +// }
41 cache('param',$param); 41 cache('param',$param);
42 $result = json_decode($param['RequestData'],true); 42 $result = json_decode($param['RequestData'],true);
  43 + cache('result',$result);
43 $bird = config('bird'); 44 $bird = config('bird');
44 echo '{ 45 echo '{
45 - "EBusinessID": "'.$result[0]['EBusinessID'].'", 46 + "EBusinessID": "'.$bird['EBusinessID'].'",
46 "UpdateTime": "'. date('Y-m-d H:i:s', time()) .'", 47 "UpdateTime": "'. date('Y-m-d H:i:s', time()) .'",
47 "Success": "'. true .'", 48 "Success": "'. true .'",
48 "Reason": "'. 123 .'" 49 "Reason": "'. 123 .'"