1
This commit is contained in:
@@ -2200,12 +2200,15 @@ func updateStoresSkusWithoutSync(ctx *jxcontext.Context, db *dao.DaoDB, storeIDs
|
||||
setStoreSkuBindStatus(skuBind, model.SyncFlagSaleMask)
|
||||
setStoreSkuBindStatus(skuBind, model.SyncFlagStockMask)
|
||||
if tmpStatus == model.StoreSkuBindStatusNormal {
|
||||
if skuBind.Stock == 0 && beego.BConfig.RunMode != model.ServerTypePet {
|
||||
switch beego.BConfig.RunMode {
|
||||
case model.ServerTypePet:
|
||||
if inSkuBind.Stock != nil {
|
||||
skuBind.Stock = *inSkuBind.Stock
|
||||
} else {
|
||||
skuBind.Stock = 0
|
||||
}
|
||||
default:
|
||||
skuBind.Stock = model.MaxStoreSkuStockQty
|
||||
} else if inSkuBind != nil {
|
||||
skuBind.Stock = *inSkuBind.Stock
|
||||
} else {
|
||||
skuBind.Stock = 0
|
||||
}
|
||||
//下面这段很难受
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user