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
cd4c7fbe
authored
May 30, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
包装
parent
fbc16f5e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
model/ly_sku.go
service/service_ly.go
model/ly_sku.go
View file @
cd4c7fbe
...
...
@@ -92,6 +92,7 @@ type LySku struct {
Tariff
float64
`json:"tariff"`
TariffFormat
string
`json:"tariff_format"`
AbilityLevel
int
`json:"ability_level"`
BrandPack
string
`json:"brand_pack"`
}
type
DiscountRatio
struct
{
...
...
@@ -162,7 +163,7 @@ type SpuExtra struct {
TransformedWeight
float64
`json:"weight"`
Width
string
`json:"width" bson:"width"`
Length
string
`json:"length" bson:"length"`
BrandPack
string
`json:"brand_pack" bson:"brand_pack"`
BrandPack
string
`json:"brand_pack" bson:"brand_pack"`
}
type
CustomPrice
struct
{
...
...
@@ -287,7 +288,6 @@ func InitSkuData(sku string) (data LySku) {
data
.
AbilityLevel
=
int
(
gjson
.
Get
(
sku
,
"ability_level"
)
.
Int
())
return
}
...
...
service/service_ly.go
View file @
cd4c7fbe
...
...
@@ -140,6 +140,7 @@ func (ls *LyService) LyGoodsDetail(ctx *gin.Context, goodsIds []string, ch chan
brandPack
:=
gjson
.
Get
(
spu
,
"brand_pack"
)
.
String
()
if
brandPack
!=
""
{
sku
.
SpuExtra
.
BrandPack
=
brandPack
sku
.
BrandPack
=
brandPack
}
...
...
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