1
This commit is contained in:
@@ -260,7 +260,7 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
|||||||
// 创建商品
|
// 创建商品
|
||||||
param := &product_addV2_request.ProductAddV2Param{
|
param := &product_addV2_request.ProductAddV2Param{
|
||||||
CategoryLeafId: utils.Str2Int64(storeSku.SkuVendorMapCatID),
|
CategoryLeafId: utils.Str2Int64(storeSku.SkuVendorMapCatID),
|
||||||
Name: storeSku.Name,
|
Name: utils.LimitUTF8StringLen(storeSku.SkuName, mtwmapi.MaxSkuNameCharCount),
|
||||||
PayType: tiktokShop.TiktokPayType1,
|
PayType: tiktokShop.TiktokPayType1,
|
||||||
ReduceType: tiktokShop.SkuReduceTypePayMakeOrder,
|
ReduceType: tiktokShop.SkuReduceTypePayMakeOrder,
|
||||||
Weight: utils.Int2Float64(storeSku.Weight),
|
Weight: utils.Int2Float64(storeSku.Weight),
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import (
|
|||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
"git.rosy.net.cn/jx-callback/business/model"
|
"git.rosy.net.cn/jx-callback/business/model"
|
||||||
"git.rosy.net.cn/jx-callback/business/model/dao"
|
"git.rosy.net.cn/jx-callback/business/model/dao"
|
||||||
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
@@ -79,8 +80,8 @@ func GetDeliveryTemp(api *tiktokShop.API, vendorStoreID string, storeDetail *dao
|
|||||||
},
|
},
|
||||||
Columns: []freightTemplate_create_request.ColumnsItem{
|
Columns: []freightTemplate_create_request.ColumnsItem{
|
||||||
{
|
{
|
||||||
FirstWeight: 0,
|
FirstWeight: 0.1,
|
||||||
FirstWeightPrice: 0,
|
FirstWeightPrice: 0.0,
|
||||||
FirstNum: 1,
|
FirstNum: 1,
|
||||||
FirstNumPrice: 1,
|
FirstNumPrice: 1,
|
||||||
AddNum: 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 {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ func (c *TiktokShopController) TokenMsg() {
|
|||||||
VendorType: "platform",
|
VendorType: "platform",
|
||||||
IsJxCat: 1,
|
IsJxCat: 1,
|
||||||
IsOpen: 1,
|
IsOpen: 1,
|
||||||
EmpowerURL: "",
|
EmpowerURL: "https://fuwu.jinritemai.com/detail?from=open_partner_svcList&service_id=24070",
|
||||||
StoreBrandName: result.ShopName,
|
StoreBrandName: result.ShopName,
|
||||||
Token: string(data),
|
Token: string(data),
|
||||||
AppKey: "", // web.AppConfig.DefaultString("tiktokShopAppId", "7136048270014416392"),
|
AppKey: "", // web.AppConfig.DefaultString("tiktokShopAppId", "7136048270014416392"),
|
||||||
|
|||||||
Reference in New Issue
Block a user