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

接收推送消息

@@ -100,6 +100,9 @@ class BirdController extends HomeBaseController @@ -100,6 +100,9 @@ class BirdController extends HomeBaseController
100 //解析在线下单返回结果 100 //解析在线下单返回结果
101 $result = json_decode($jsonResult, true); 101 $result = json_decode($jsonResult, true);
102 if ($result["ResultCode"] == "100") { 102 if ($result["ResultCode"] == "100") {
  103 + if(!empty($result['Order']['LogisticCode'])){
  104 + $indentModel->updateData(['id'=>$indent_id],['logistic_code'=>$result['Order']['LogisticCode']]);
  105 + }
103 return ['code'=>20000,'msg'=>'SUCCESS','data'=>$result['Order']['LogisticCode']];//返回快递单号 106 return ['code'=>20000,'msg'=>'SUCCESS','data'=>$result['Order']['LogisticCode']];//返回快递单号
104 } else { 107 } else {
105 return ['code'=>40000,'msg'=>$result['Reason']]; 108 return ['code'=>40000,'msg'=>$result['Reason']];