1
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package ebai
|
||||
|
||||
import (
|
||||
beego "github.com/astaxie/beego/server/web"
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -455,9 +456,9 @@ func genSkuParamsFromStoreSkuInfo2(storeSku *dao.StoreSkuSyncInfo, isCreate, isE
|
||||
"url": storeSku.Img5,
|
||||
})
|
||||
}
|
||||
|
||||
params = map[string]interface{}{
|
||||
// "name": utils.LimitMixedStringLen(storeSku.SkuName, ebaiapi.MaxSkuNameByteCount),
|
||||
"left_num": model.MaxStoreSkuStockQty,
|
||||
// "category_id": utils.Str2Int64(storeSku.VendorCatID),
|
||||
//"predict_cat": 0, // 不使用推荐类目
|
||||
// "cat3_id": getEbaiCat(storeSku.VendorVendorCatID),
|
||||
@@ -465,6 +466,12 @@ func genSkuParamsFromStoreSkuInfo2(storeSku *dao.StoreSkuSyncInfo, isCreate, isE
|
||||
"photos": photos,
|
||||
"preparation_time": storeSku.PreparationTime,
|
||||
}
|
||||
|
||||
if storeSku.Stock == 0 && beego.BConfig.RunMode != model.ServerTypePet {
|
||||
params["left_num"] = model.MaxStoreSkuStockQty
|
||||
} else {
|
||||
params["left_num"] = storeSku.Stock
|
||||
}
|
||||
if !isExd {
|
||||
var categoryID = utils.Str2Int64(storeSku.VendorCatID)
|
||||
if ebaiExSkuCatMap[storeSku.SkuID] != 0 {
|
||||
|
||||
Reference in New Issue
Block a user