This commit is contained in:
邹宗楠
2022-10-13 10:02:49 +08:00
parent 1133dd5acc
commit 0751c0396e
2 changed files with 8 additions and 7 deletions

View File

@@ -193,9 +193,6 @@ func (p *PurchaseHandler) getOrder(vendorOrgCode, vendorOrderID, vendorStoreID s
}
// 用户保密信息脱敏
// ConsigneeName: result.MaskPostReceiver,
// ConsigneeMobile: result.MaskPostTel,
// ConsigneeAddress: result.MaskPostAddr.Detail,
name, tel, address, _ := api.OrderUserInfoDecrypt(vendorOrderID, result.EncryptPostReceiver, result.EncryptPostTel, result.PostAddr.EncryptDetail)
order.ConsigneeName = name
order.ConsigneeMobile = tel

View File

@@ -294,11 +294,15 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
}
param.Pic = img
// 商品详情图
img2, err := GetTiktokImgList(utils.Int2Str(storeSku.StoreID), storeDetail.VendorOrgCode, storeSku.DescImg)
if err != nil {
return nil, err
if storeSku.DescImg == "" {
param.Description = img
} else {
img2, err := GetTiktokImgList(utils.Int2Str(storeSku.StoreID), storeDetail.VendorOrgCode, storeSku.DescImg)
if err != nil {
return nil, err
}
param.Description = img2
}
param.Description = img2
// weight_unit 目前抖音只支持g和kg两种
switch storeSku.Unit {