Commit 01f4579f by 杨树贤

补全

parent 87f3eca1
Showing with 4 additions and 1 deletions
...@@ -114,10 +114,13 @@ func CommonController(ctx *gin.Context) map[string]interface{} { ...@@ -114,10 +114,13 @@ func CommonController(ctx *gin.Context) map[string]interface{} {
idsToProcess := make([]string, len(zyGoodsId)) idsToProcess := make([]string, len(zyGoodsId))
copy(idsToProcess, zyGoodsId) copy(idsToProcess, zyGoodsId)
ctxCopy := ctx.Copy()
go func(ctx_in *gin.Context, goodsIds_in []string, chs_in chan sync.Map) { go func(ctx_in *gin.Context, goodsIds_in []string, chs_in chan sync.Map) {
defer wg.Done() defer wg.Done()
zyService.ZyGoodsDetail(ctx_in, goodsIds_in, chs_in) zyService.ZyGoodsDetail(ctx_in, goodsIds_in, chs_in)
}(ctx, zyGoodsId, ch) }(ctxCopy, zyGoodsId, ch)
} }
if len(lyGoodsId) > 0 { if len(lyGoodsId) > 0 {
......
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