Authored by 郭成尧

'理由拆分'

... ... @@ -319,7 +319,11 @@ class ReturnsModel
// 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) {
... ... @@ -405,7 +409,11 @@ class ReturnsModel
// 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) {
... ...