Commit d44d3bc6 by 杨树贤

部分优化

parent 9e449996
Showing with 2 additions and 1 deletions
......@@ -69,11 +69,12 @@ func (qs *ZiyingService) GetActivity(skuInfo string) (priceActivity model.PriceA
spuId := gjson.Get(skuInfo, "spu_id").String()
redisCon := gredis.Conn("default_r")
redisConSpu := gredis.Conn("spu")
spuStr, _ := redis.String(redisConSpu.Do("HGET", "spu", spuId))
defer func() {
redisCon.Close()
redisConSpu.Close()
}()
spuStr, _ := redis.String(redisConSpu.Do("HGET", "spu", spuId))
if spuStr == "" {
standardBrandId = 0
} else {
......
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