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