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

接收推送消息

@@ -27,10 +27,13 @@ class LoadController extends HomeBaseController @@ -27,10 +27,13 @@ class LoadController extends HomeBaseController
27 } 27 }
28 public function test(){ 28 public function test(){
29 29
30 - dump(cache('param')); 30 + dump(json_decode(cache('param')['RequestData']));
31 } 31 }
32 public function notify(){ 32 public function notify(){
33 $param = $this->request->param(); 33 $param = $this->request->param();
  34 + if(empty($param['RequestType'])){
  35 + $this->error('error');
  36 + }
34 cache('param',$param); 37 cache('param',$param);
35 $bird = config('bird'); 38 $bird = config('bird');
36 $arr['EBusinessID'] = 'test'.$bird['EBusinessID']; 39 $arr['EBusinessID'] = 'test'.$bird['EBusinessID'];