1
This commit is contained in:
@@ -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
|
||||
|
||||
115752
swagger/param_parser.go.txt
115752
swagger/param_parser.go.txt
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user