20260227-1
This commit is contained in:
@@ -1309,6 +1309,12 @@ const submitOrder = async () => {
|
||||
const groups: any[] = []
|
||||
for (let i = 0; i < shopGroups.value.length; i++) {
|
||||
const group = shopGroups.value[i]
|
||||
console.log(`[submitOrder] 处理店铺组 ${i}:`, {
|
||||
shopId: group.shopId,
|
||||
shopName: group.shopName,
|
||||
merchant_id: group.merchant_id,
|
||||
itemsCount: group.items.length
|
||||
})
|
||||
const items: any[] = []
|
||||
for (let j = 0; j < group.items.length; j++) {
|
||||
const item = group.items[j]
|
||||
@@ -1323,8 +1329,10 @@ const submitOrder = async () => {
|
||||
specifications: item.sku_specifications
|
||||
})
|
||||
}
|
||||
const finalMerchantId = (group.merchant_id != null && group.merchant_id != '') ? group.merchant_id : group.shopId
|
||||
console.log(`[submitOrder] 店铺组 ${i} 最终使用的 merchant_id:`, finalMerchantId)
|
||||
groups.push({
|
||||
merchant_id: (group.merchant_id != null && group.merchant_id != '') ? group.merchant_id : group.shopId,
|
||||
merchant_id: finalMerchantId,
|
||||
shopId: group.shopId,
|
||||
shopName: group.shopName,
|
||||
items: items
|
||||
|
||||
Reference in New Issue
Block a user