1
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user