Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
search_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
d8f4b6a9
authored
Jan 12, 2024
by
SUDPTDUBLXEROFX\Administrator
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
分类品牌
parent
647544b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
service/optimum_service.go
service/optimum_service.go
View file @
d8f4b6a9
...
...
@@ -124,11 +124,13 @@ func (qs *OptimumService) GetOptimumAttr(ctx *gin.Context) (results model.LyResp
brandId
:=
valueMap
[
"key"
]
.
String
()
//todo 标准品牌
brand_name_json
,
_
:=
redis
.
String
(
redisConn
.
Do
(
"Hget"
,
"standard_brand"
,
brandId
))
brandName
:=
gjson
.
Get
(
brand_name_json
,
"brand_name"
)
.
String
()
if
brandName
==
""
{
brandName
,
_
=
redis
.
String
(
redisConn
.
Do
(
"Hget"
,
"brand"
,
brandId
))
}
//brand_name_json, _ := redis.String(redisConn.Do("Hget", "standard_brand", brandId))
//brandName := gjson.Get(brand_name_json, "brand_name").String()
//if brandName == "" {
// brandName, _ = redis.String(redisConn.Do("Hget", "brand", brandId))
//}
brandName
,
_
:=
redis
.
String
(
redisConn
.
Do
(
"Hget"
,
"brand"
,
brandId
))
ischeck
:=
"0"
//是否选中
if
php2go
.
InArray
(
brandId
,
REQUEST_ATTR
[
"brand"
])
{
...
...
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