...
|
...
|
@@ -321,6 +321,19 @@ class ReturnsModel |
|
|
}
|
|
|
$result['orderCode'] = $orderCode;
|
|
|
$result['reason'] = $data['data']['return_reason'];
|
|
|
|
|
|
// tar note 对数组做处理,为不显示的添加 inactive
|
|
|
if (isset($data['data']['special_exchange_reason'])) {
|
|
|
foreach ($result['reason'] as $key => $item) {
|
|
|
if (!in_array($item, $data['data']['special_exchange_reason'])) {
|
|
|
$result['reason'][$key]['inactive'] = true;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 对原因排序
|
|
|
asort($result['reason']);
|
|
|
|
|
|
//计算相关支付细节
|
|
|
$result['amount'] = $amount - $data['data']['yoho_coin_num'] - $data['data']['coupon_amount'];
|
|
|
$result['yohoCoin'] = $data['data']['yoho_coin_num'];
|
...
|
...
|
@@ -402,6 +415,9 @@ class ReturnsModel |
|
|
}
|
|
|
}
|
|
|
|
|
|
// 对原因排序
|
|
|
asort($result['reason']);
|
|
|
|
|
|
$result['orderCode'] = $orderCode;
|
|
|
|
|
|
//换货地址相关数据(邮编为可空参数)
|
...
|
...
|
|