|
@@ -311,6 +311,8 @@ class ProductService extends AlibabaAgentBaseService
|
|
311
|
'image' => !empty($skuAttrs[0]['skuImageUrl'] ?? '') ? $this->buildImageUrl($skuAttrs[0]['skuImageUrl']) : '',
|
311
|
'image' => !empty($skuAttrs[0]['skuImageUrl'] ?? '') ? $this->buildImageUrl($skuAttrs[0]['skuImageUrl']) : '',
|
|
312
|
];
|
312
|
];
|
|
313
|
}
|
313
|
}
|
|
|
|
314
|
+ }else{
|
|
|
|
315
|
+
|
|
314
|
}
|
316
|
}
|
|
315
|
|
317
|
|
|
316
|
// --- 描述处理 ---
|
318
|
// --- 描述处理 ---
|
|
@@ -686,6 +688,9 @@ class ProductService extends AlibabaAgentBaseService
|
|
686
|
$detail['skuList'] = $skuList;
|
688
|
$detail['skuList'] = $skuList;
|
|
687
|
|
689
|
|
|
688
|
// 2. 商品级别价格加价
|
690
|
// 2. 商品级别价格加价
|
|
|
|
691
|
+ if ($detail['minPrice'] == 0) $detail['minPrice'] = $detail['sale']['consignPrice'];
|
|
|
|
692
|
+ if ($detail['maxPrice'] == 0) $detail['maxPrice'] = $detail['sale']['consignPrice'];
|
|
|
|
693
|
+ if ($detail['price'] == 0) $detail['price'] = $detail['sale']['consignPrice'];
|
|
689
|
$detail['originalMinPrice'] = $detail['minPrice'] ?? 0;
|
694
|
$detail['originalMinPrice'] = $detail['minPrice'] ?? 0;
|
|
690
|
$detail['originalMaxPrice'] = $detail['maxPrice'] ?? 0;
|
695
|
$detail['originalMaxPrice'] = $detail['maxPrice'] ?? 0;
|
|
691
|
$detail['originalPrice'] = $detail['price'] ?? 0;
|
696
|
$detail['originalPrice'] = $detail['price'] ?? 0;
|