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
35ad01e9
authored
Jun 22, 2022
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
分类获取的判断条件
parent
53346117
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
service/service_ly_common.go
service/service_ly_common.go
View file @
35ad01e9
...
...
@@ -41,8 +41,8 @@ func (ls *LyService) GetGoodsClass(sku model.LySku, spu string) model.LySku {
spuClassId1
:=
gjson
.
Get
(
spu
,
"class_id1"
)
.
Int
()
spuClassId2
:=
gjson
.
Get
(
spu
,
"class_id2"
)
.
Int
()
spuClassId3
:=
gjson
.
Get
(
spu
,
"class_id3"
)
.
Int
()
if
spuClassId
3
!=
0
{
sku
.
ClassName
=
ls
.
GetCacheClass
(
spuClassId
3
)
if
spuClassId
2
!=
0
{
sku
.
ClassName
=
ls
.
GetCacheClass
(
spuClassId
2
)
sku
.
ClassName3
=
ls
.
GetCacheClass
(
spuClassId3
)
sku
.
ClassName2
=
ls
.
GetCacheClass
(
spuClassId2
)
sku
.
ClassName1
=
ls
.
GetCacheClass
(
spuClassId1
)
...
...
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