This commit is contained in:
邹宗楠
2025-02-20 16:31:10 +08:00
parent 304689247d
commit 8e7e2421a7
2 changed files with 13 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ package mtwm
import (
"encoding/json"
"fmt"
beego "github.com/astaxie/beego/server/web"
"math"
"regexp"
"strings"
@@ -620,7 +621,7 @@ func SwitchAttr(apiObj *mtwmapi.API, vendorStoreID string, vendorCatID int64, na
}
func stockCount2Mtwm(stock int) (mtwmStock string) {
if stock == 0 {
if stock == 0 && beego.BConfig.RunMode != model.ServerTypePet {
stock = model.MaxStoreSkuStockQty
}
return utils.Int2Str(stock)