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
2c443830
authored
Dec 16, 2020
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'ysx-sku服务-20201215'
parents
f39b5e7f
38c7f6d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
service/service_ly_common.go
service/service_ly_common.go
View file @
2c443830
...
...
@@ -279,6 +279,7 @@ func (ls *LyService) GetCoefficient(sku model.LySku) model.LySku {
}
if
!
hasCoefficient
&&
!
hasDefault
{
logger
.
Error
(
"%s"
,
"系数获取异常,供应商:"
+
common
.
ToString
(
sku
.
SupplierId
))
sku
.
Content
=
"系数获取异常,供应商:"
+
common
.
ToString
(
sku
.
SupplierId
)
return
sku
}
...
...
@@ -401,7 +402,6 @@ func (ls *LyService) CombineSup(sku model.LySku, spuStr string) model.LySku {
sku
.
SpuDetail
=
gjson
.
Get
(
spuStr
,
"spu_detail"
)
.
String
()
sku
.
Status
=
int
(
gjson
.
Get
(
spuStr
,
"status"
)
.
Int
())
sku
.
Encap
=
gjson
.
Get
(
spuStr
,
"encap"
)
.
String
()
sku
.
Content
=
gjson
.
Get
(
spuStr
,
"spu_name"
)
.
String
()
return
sku
}
...
...
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