Commit e850a549 by mushishixian

位置问题替换

parent e8253d38
Showing with 1 additions and 1 deletions
...@@ -219,10 +219,10 @@ func (qs *ZiyingService) ZyGoodsDetail(ctx *gin.Context, goodsIds []string, ch c ...@@ -219,10 +219,10 @@ func (qs *ZiyingService) ZyGoodsDetail(ctx *gin.Context, goodsIds []string, ch c
A.Set("goods_images", image) A.Set("goods_images", image)
pdf := gjson.Get(info, "pdf").String() pdf := gjson.Get(info, "pdf").String()
pdf = strings.Replace(pdf, "http://img.ichunt.com", "https://img.ichunt.com", 1)
if pdf != "" { if pdf != "" {
pdf, _ = gredis.String(redisConn.Do("HGET", "Self_SelfGoodsSource", pdf)) pdf, _ = gredis.String(redisConn.Do("HGET", "Self_SelfGoodsSource", pdf))
} }
pdf = strings.Replace(pdf, "http://img.ichunt.com", "https://img.ichunt.com", 1)
A.Set("pdf", gjson.Get(pdf, "url").String()) A.Set("pdf", gjson.Get(pdf, "url").String())
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment