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

接收推送消息

... ... @@ -236,11 +236,11 @@ $configs = [
//快递鸟参数配置
'bird'=>[
//正式
'EBusinessID' => '1472267',//电商ID
'AppKey' => 'cc8314fd-0381-4e37-ad17-239287f1d8d2',//AppKey
// 'EBusinessID' => '1472267',//电商ID
// 'AppKey' => 'cc8314fd-0381-4e37-ad17-239287f1d8d2',//AppKey
//测试
// 'EBusinessID' => 'test1472267',
// 'AppKey' => 'f84c7071-a6c7-48ce-8fe0-11b719d88a1d',
'EBusinessID' => 'test1472267',
'AppKey' => 'f84c7071-a6c7-48ce-8fe0-11b719d88a1d',
],
//快递鸟预约取件接口寄件人参数
'sender'=>[
... ...
... ... @@ -32,17 +32,18 @@ class LoadController extends HomeBaseController
public function notify(){
$param = $this->request->param();
if(empty($param['RequestType'])){
$this->error('error');
}
if($param['RequestType'] != 101){
$this->error('error');
}
// if(empty($param['RequestType'])){
// $this->error('error');
// }
// if($param['RequestType'] != 101){
// $this->error('error');
// }
cache('param',$param);
$result = json_decode($param['RequestData'],true);
cache('result',$result);
$bird = config('bird');
echo '{
"EBusinessID": "'.$result[0]['EBusinessID'].'",
"EBusinessID": "'.$bird['EBusinessID'].'",
"UpdateTime": "'. date('Y-m-d H:i:s', time()) .'",
"Success": "'. true .'",
"Reason": "'. 123 .'"
... ...