正在显示
1 个修改的文件
包含
3 行增加
和
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']]; |
-
请 注册 或 登录 后发表评论