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
c087e8c7
authored
Mar 24, 2026
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化
parent
6a8ec864
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
service/service_tags.go
service/service_tags.go
View file @
c087e8c7
...
...
@@ -77,6 +77,18 @@ func (ts *TagsService) GetLyTags(sku model.LySku) (goodsTags model.GoodsTag) {
goodsTags
.
GoodsLabelName
=
goodsLabel
goodsTags
.
GoodsLabel
=
goodsLabelType
//系统打的标签
systemTagArr
:=
gjson
.
Get
(
goodsTagsStr
,
"tags"
)
.
Array
()
if
len
(
systemTagArr
)
>
0
{
for
_
,
tagIdResult
:=
range
systemTagArr
{
tagId
:=
int
(
tagIdResult
.
Int
())
tags
=
append
(
tags
,
tagId
)
if
tagName
,
ok
:=
vars
.
GoodsTags
[
tagId
];
ok
{
tagNames
=
append
(
tagNames
,
tagName
)
}
}
}
//自定义标签
customerTag
:=
gjson
.
Get
(
goodsTagsStr
,
"customer_tag"
)
.
String
()
if
customerTag
!=
""
{
...
...
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