...
|
...
|
@@ -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']];
|
...
|
...
|
@@ -198,6 +201,7 @@ class BirdController extends HomeBaseController |
|
|
$indent = $indentModel->findData($where);
|
|
|
if(empty($indent)){
|
|
|
$this->error('未查询到该订单','','','');
|
|
|
|
|
|
}
|
|
|
if($indent['state'] != 5){
|
|
|
$this->error('该订单不是已发货状态','','','');
|
...
|
...
|
|