库存默认9999把
This commit is contained in:
@@ -16,10 +16,6 @@ import (
|
||||
"git.rosy.net.cn/jx-callback/globals/api"
|
||||
)
|
||||
|
||||
var (
|
||||
stock float64 = 100
|
||||
)
|
||||
|
||||
func (p *PurchaseHandler) CreateStoreSkus(ctx *jxcontext.Context, storeID int, vendorStoreID string, storeSkuList []*dao.StoreSkuSyncInfo) (failedList []*partner.StoreSkuInfoWithErr, err error) {
|
||||
storeSku := storeSkuList[0]
|
||||
buildYbConfigs(storeID)
|
||||
@@ -246,7 +242,7 @@ func buildProductInfoParam(storeSku *dao.StoreSkuSyncInfo) (productInfoParam *yi
|
||||
)
|
||||
productInfoParam = &yinbaoapi.ProductInfoParam{}
|
||||
productInfo := &yinbaoapi.ProductInfo{
|
||||
Stock: &stock,
|
||||
Stock: utils.Float64ToPointer(utils.Str2Float64(utils.Int2Str(model.MaxStoreSkuStockQty))),
|
||||
Name: storeSku.SkuName,
|
||||
Barcode: utils.Int2Str(storeSku.SkuID),
|
||||
BuyPrice: &buyPrice,
|
||||
|
||||
Reference in New Issue
Block a user