1
This commit is contained in:
@@ -260,7 +260,7 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
||||
// 创建商品
|
||||
param := &product_addV2_request.ProductAddV2Param{
|
||||
CategoryLeafId: utils.Str2Int64(storeSku.SkuVendorMapCatID),
|
||||
Name: storeSku.Name,
|
||||
Name: utils.LimitUTF8StringLen(storeSku.SkuName, mtwmapi.MaxSkuNameCharCount),
|
||||
PayType: tiktokShop.TiktokPayType1,
|
||||
ReduceType: tiktokShop.SkuReduceTypePayMakeOrder,
|
||||
Weight: utils.Int2Float64(storeSku.Weight),
|
||||
|
||||
@@ -13,6 +13,7 @@ import (
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
"git.rosy.net.cn/jx-callback/business/model/dao"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"math/rand"
|
||||
"strings"
|
||||
)
|
||||
@@ -79,8 +80,8 @@ func GetDeliveryTemp(api *tiktokShop.API, vendorStoreID string, storeDetail *dao
|
||||
},
|
||||
Columns: []freightTemplate_create_request.ColumnsItem{
|
||||
{
|
||||
FirstWeight: 0,
|
||||
FirstWeightPrice: 0,
|
||||
FirstWeight: 0.1,
|
||||
FirstWeightPrice: 0.0,
|
||||
FirstNum: 1,
|
||||
FirstNumPrice: 1,
|
||||
AddNum: 1,
|
||||
@@ -108,6 +109,8 @@ func GetDeliveryTemp(api *tiktokShop.API, vendorStoreID string, storeDetail *dao
|
||||
},
|
||||
},
|
||||
})
|
||||
globals.SugarLogger.Debugf("=========tempId:%s", utils.Format4Output(temp, false))
|
||||
globals.SugarLogger.Debugf("=========err:%s", err)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user