Commit 6dad7030 by 杨树贤

补全漏洞

parent ec421890
Showing with 1 additions and 0 deletions
...@@ -328,6 +328,7 @@ func (ls *LyService) GetCoefficientAndPrice(sku model.LySku) model.LySku { ...@@ -328,6 +328,7 @@ func (ls *LyService) GetCoefficientAndPrice(sku model.LySku) model.LySku {
if sku.Canal == "L0018562" { if sku.Canal == "L0018562" {
redisCon := gredis.Conn("default_r") redisCon := gredis.Conn("default_r")
defer redisCon.Close()
usdRatio, _ := redis.Float64(redisCon.Do("HGET", "erp_rate", 2)) usdRatio, _ := redis.Float64(redisCon.Do("HGET", "erp_rate", 2))
for _, price := range sku.OriginalPrice { for _, price := range sku.OriginalPrice {
originalPrice = append(originalPrice, model.OriginPrice{ originalPrice = append(originalPrice, model.OriginPrice{
......
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