Commit 332f1d13 by 杨树贤

恢复

parent 41ade6f3
Showing with 0 additions and 8 deletions
...@@ -10,7 +10,6 @@ import ( ...@@ -10,7 +10,6 @@ import (
"sort" "sort"
"strconv" "strconv"
"sync" "sync"
"time"
"gopkg.in/mgo.v2" "gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson" "gopkg.in/mgo.v2/bson"
...@@ -60,13 +59,6 @@ func (ls *LyService) LyGoodsDetail(ctx *gin.Context, goodsIds []string, ch chan ...@@ -60,13 +59,6 @@ func (ls *LyService) LyGoodsDetail(ctx *gin.Context, goodsIds []string, ch chan
//是否展示spu额外信息 //是否展示spu额外信息
showSpuExtra := ctx.Request.FormValue("show_spu_extra") showSpuExtra := ctx.Request.FormValue("show_spu_extra")
//是否超时
timeout := ctx.Request.FormValue("timeout")
if timeout == "1" {
time.Sleep(time.Second * 15)
}
//批量获取商品详情 //批量获取商品详情
skuArr := gredis.Hmget("default_r", "sku", goodsIds) skuArr := gredis.Hmget("default_r", "sku", goodsIds)
//为了性能着想,这边也先去批量获取spu的信息 //为了性能着想,这边也先去批量获取spu的信息
......
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