This commit is contained in:
邹宗楠
2026-05-11 18:26:45 +08:00
parent 72fe5cd56c
commit f2c061465c
2 changed files with 57895 additions and 57892 deletions

View File

@@ -817,6 +817,9 @@ func generateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64
result, _ = orderman.GetMatterStoreOrderCount(nil, fromStoreID)
sum = result.Count
}
if sum <= 0 {
return nil, nil, fmt.Errorf("没有足够的订单兑换物料")
}
if jxOrder.Weight == 0 {
for _, v := range jxOrder.Skus {
v.Weight = storeSkuMap[v.SkuID].Weight