This commit is contained in:
suyl
2021-05-12 15:05:07 +08:00
parent bf5fb8aea5
commit 0fb3d05d3e

View File

@@ -126,10 +126,10 @@ func (s *UnionHandler) GetUnionMatterList(ctx *jxcontext.Context, vendorCatID, k
Imgs: strings.Join(v.SmallImages, ","), Imgs: strings.Join(v.SmallImages, ","),
UrlL: v.CouponShareURL, UrlL: v.CouponShareURL,
} }
if urlS, err2 := api.TbUnionAPI.SpreadGet(v.CouponShareURL); err2 == nil { if urlS, err2 := api.TbUnionAPI.SpreadGet("https://" + v.CouponShareURL); err2 == nil {
goodsDetail.UrlS = urlS goodsDetail.UrlS = urlS
} }
if tpwdCreateResult, err3 := api.TbUnionAPI.TpwdCreate(goodsDetail.UrlL); err3 == nil { if tpwdCreateResult, err3 := api.TbUnionAPI.TpwdCreate("https://" + goodsDetail.UrlL); err3 == nil {
goodsDetail.Tpwd = tpwdCreateResult.PasswordSimple goodsDetail.Tpwd = tpwdCreateResult.PasswordSimple
goodsDetail.TpwdIOS14 = tpwdCreateResult.Model goodsDetail.TpwdIOS14 = tpwdCreateResult.Model
} }