This commit is contained in:
邹宗楠
2022-10-24 20:02:34 +08:00
parent 6ed3f45d23
commit 9db784af3f
3 changed files with 7 additions and 4 deletions

View File

@@ -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),

View File

@@ -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
}

View File

@@ -83,7 +83,7 @@ func (c *TiktokShopController) TokenMsg() {
VendorType: "platform",
IsJxCat: 1,
IsOpen: 1,
EmpowerURL: "",
EmpowerURL: "https://fuwu.jinritemai.com/detail?from=open_partner_svcList&service_id=24070",
StoreBrandName: result.ShopName,
Token: string(data),
AppKey: "", // web.AppConfig.DefaultString("tiktokShopAppId", "7136048270014416392"),