1
This commit is contained in:
@@ -69,7 +69,7 @@ func GetDeliveryTemp(api *tiktokShop.API, vendorStoreID string, storeDetail *dao
|
|||||||
freightId, _ := api.GetStoreBindTemp(utils.Str2Int64(vendorStoreID))
|
freightId, _ := api.GetStoreBindTemp(utils.Str2Int64(vendorStoreID))
|
||||||
if freightId == 0 {
|
if freightId == 0 {
|
||||||
// 创建门店运费模板
|
// 创建门店运费模板
|
||||||
temp, err := api.FreightTemplateCreate(&freightTemplate_create_request.FreightTemplateCreateParam{
|
tempDetail := &freightTemplate_create_request.FreightTemplateCreateParam{
|
||||||
Template: &freightTemplate_create_request.Template{
|
Template: &freightTemplate_create_request.Template{
|
||||||
TemplateName: storeDetail.Name + "_" + utils.Int64ToStr(rand.Int63n(int64(storeDetail.ID))) + "_系统模板",
|
TemplateName: storeDetail.Name + "_" + utils.Int64ToStr(rand.Int63n(int64(storeDetail.ID))) + "_系统模板",
|
||||||
ProductProvince: utils.Str2Int64(utils.Int2Str(storeDetail.ProvinceCode)[0:2]),
|
ProductProvince: utils.Str2Int64(utils.Int2Str(storeDetail.ProvinceCode)[0:2]),
|
||||||
@@ -108,8 +108,10 @@ func GetDeliveryTemp(api *tiktokShop.API, vendorStoreID string, storeDetail *dao
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
}
|
||||||
|
temp, err := api.FreightTemplateCreate(tempDetail)
|
||||||
globals.SugarLogger.Debugf("=========tempId:%s", utils.Format4Output(temp, false))
|
globals.SugarLogger.Debugf("=========tempId:%s", utils.Format4Output(temp, false))
|
||||||
|
globals.SugarLogger.Debugf("=========tempDetail:%s", utils.Format4Output(tempDetail, false))
|
||||||
globals.SugarLogger.Debugf("=========err:%s", err)
|
globals.SugarLogger.Debugf("=========err:%s", err)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
|
|||||||
Reference in New Issue
Block a user