Authored by 郭成尧

'理由拆分'

... ... @@ -315,11 +315,15 @@ class ReturnsModel
$result['goods'][$key]['goods_type'] = $value['goods_type'];
$amount += $value['last_price'];//所以商品价格加起来,等于订单总价
$result['goods'][$key]['reason'] = $data['data']['return_reason'];
$result['goods'][$key]['reason'] = $data['data']['return_reason'];
// tar note 为每个特殊商品都添加标识
if ($value['is_limit_skn'] === 'Y') {
$result['goods'][$key]['specialNoticeBo'] = $data['data']['special_notice'];
$remarks = explode(' ', $data['data']['special_notice']['remark'], 2); // 使用3个空格拆分
$result['goods'][$key]['specialNoticeBo']['title'] = $data['data']['special_notice']['title'];
$result['goods'][$key]['specialNoticeBo']['remark1'] = $remarks[0];
$result['goods'][$key]['specialNoticeBo']['remark2'] = $remarks[1];
// tar note 对数组做处理,为不显示的添加 inactive
if (isset($data['data']['special_return_reason'])) {
foreach ($result['goods'][$key]['reason'] as $subKey => $item) {
... ... @@ -401,11 +405,15 @@ class ReturnsModel
$result['goods'][$key]['sku'] = $value['product_sku'];
$result['goods'][$key]['goods_type_id'] = $value['goods_type_id'];
$result['goods'][$key]['reason'] = $data['data']['exchange_reason'];
$result['goods'][$key]['reason'] = $data['data']['exchange_reason'];
// tar note 为每个特殊商品都添加标识
if ($value['is_limit_skn'] === 'Y') {
$result['goods'][$key]['specialNoticeBo'] = $data['data']['specialNoticeBo'];
$remarks = explode(' ', $data['data']['specialNoticeBo']['remark'], 2); // 使用3个空格拆分
$result['goods'][$key]['specialNoticeBo']['title'] = $data['data']['specialNoticeBo']['title'];
$result['goods'][$key]['specialNoticeBo']['remark1'] = $remarks[0];
$result['goods'][$key]['specialNoticeBo']['remark2'] = $remarks[1];
// tar note 对数组做处理,为不显示的添加 inactive
if (isset($data['data']['special_exchange_reason'])) {
foreach ($result['goods'][$key]['reason'] as $subKey => $item) {
... ...