master
ljl 10 months ago
parent 1efe3cc588
commit cfe3bd5b8b

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

Loading…
Cancel
Save