Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
go_sku_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
332f1d13
authored
Oct 27, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
恢复
parent
41ade6f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
service/service_ly.go
service/service_ly.go
View file @
332f1d13
...
@@ -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的信息
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment