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
45c129cf
authored
Jun 27, 2022
by
hcy001
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复自营品牌显示问题
parent
af40d433
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
service/service_zy.go
service/service_zy.go
View file @
45c129cf
...
...
@@ -115,8 +115,8 @@ func (qs *ZiyingService) ZyGoodsDetail(ctx *gin.Context, goodsIds []string, ch c
standardBrand
=
ly
.
GetStandardBrand
(
brandId
)
}
A
.
Set
(
"brand_id"
,
brandId
)
A
.
Set
(
"brand_name"
,
brandName
)
A
.
Set
(
"brand_id
_spu
"
,
brandId
)
A
.
Set
(
"brand_name
_spu
"
,
brandName
)
A
.
Set
(
"standard_brand"
,
standardBrand
)
A
.
Set
(
"class_id1"
,
classId1
)
//
...
...
@@ -170,9 +170,10 @@ func (qs *ZiyingService) ZyGoodsDetail(ctx *gin.Context, goodsIds []string, ch c
A
.
Set
(
"cn_delivery_time"
,
cnDeliveryTime
)
// 货期
//查询品牌名称(作废,现在改成读联营的品牌库,之前有关联自营商品到spu_id)
// brand_id := gjson.Get(info, "brand_id").Int()
// brand_info, _ := gredis.String(redisConn.Do("HGET", "Self_Brand", brand_id))
// A.Set("brand_name", gjson.Get(brand_info, "brand_name").String())
brand_id
:=
gjson
.
Get
(
info
,
"brand_id"
)
.
Int
()
brand_info
,
_
:=
gredis
.
String
(
redisConn
.
Do
(
"HGET"
,
"Self_Brand"
,
brand_id
))
A
.
Set
(
"brand_name"
,
gjson
.
Get
(
brand_info
,
"brand_name"
)
.
String
())
A
.
Set
(
"brand_id"
,
brand_id
)
if
fast
!=
"1"
{
//不是快速查询
// 供应商名称
...
...
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