master
ljl 10 months ago
parent 1efe3cc588
commit cfe3bd5b8b

@ -516,10 +516,11 @@ class GoodsShortService extends AbstractService {
$skuIds = ZcArrayHelper::getSub($pddApiSkuList, 'sku_id'); $skuIds = ZcArrayHelper::getSub($pddApiSkuList, 'sku_id');
$skuIdAndSkuShortInfoMap = $this->opSkuShortDao->getMapByMallIdAndSkuIds($mallId, $skuIds); $skuIdAndSkuShortInfoMap = $this->opSkuShortDao->getMapByMallIdAndSkuIds($mallId, $skuIds);
foreach ($pddApiSkuList as &$pddSkuInfo) { foreach ($pddApiSkuList as &$pddSkuInfo) {
$skuShortInfo = $skuIdAndSkuShortInfoMap[$pddSkuInfo['sku_id']]; $pddSkuInfo = CommonTool::underScoreToCamelCaseArr($pddSkuInfo);
$skuSubNames = ZcArrayHelper::getSub($pddSkuInfo['spec'], 'spec_name'); $skuShortInfo = $skuIdAndSkuShortInfoMap[$pddSkuInfo['skuId']];
$pddSkuInfo['sku_sub_name'] = implode(' ', $skuSubNames); $skuSubNames = ZcArrayHelper::getSub($pddSkuInfo['spec'], 'specName');
$pddSkuInfo['short_title'] = $skuShortInfo['shortTitle'] ?: ''; $pddSkuInfo['skuSubName'] = implode(' ', $skuSubNames);
$pddSkuInfo['shortTitle'] = $skuShortInfo['shortTitle'] ?: '';
unset($pddSkuInfo); unset($pddSkuInfo);
} }
$goodsIdAndSkuListMap[$goodsId] = $pddApiSkuList; $goodsIdAndSkuListMap[$goodsId] = $pddApiSkuList;

Loading…
Cancel
Save