Commit 3568ab33 authored by pengfei's avatar pengfei

update optimize_order_create goods_type is empty default goods_sku

parent ba74c43c
......@@ -2036,8 +2036,8 @@ class GoodsService
}
$goodsSkuList = [];
foreach ($goodsSkuIdList as $goodsType => $goodsSkuIds) {
// 现在只有两种类型 实体,虚拟
if ($goodsType == GoodsSpu::TYPE_VIRTUAL) {
// 现在只有两种类型 实体,虚拟 ($goodsType == '' 虚拟商品)
if (empty($goodsType) || $goodsType == GoodsSpu::TYPE_VIRTUAL) {
$goodsData = self::generalGetGoodsSkuList(['goods_sku_id' => $goodsSkuIds]);
} else {
$goodsData = self::generalGetPindanGoodsSkuList(['goods_sku_id' => $goodsSkuIds]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment