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
aae0a7b1
authored
Apr 22, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
加字段
parent
ed04fedb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
model/ly_sku.go
service/service_ly_common.go
model/ly_sku.go
View file @
aae0a7b1
...
...
@@ -90,6 +90,7 @@ type LySku struct {
CustomPriceList
[]
CustomPrice
`json:"custom_price_list"`
Coo
string
`json:"coo"`
Tariff
float64
`json:"tariff"`
TariffFormat
string
`json:"tariff_format"`
}
type
DiscountRatio
struct
{
...
...
service/service_ly_common.go
View file @
aae0a7b1
...
...
@@ -596,6 +596,7 @@ func (ls *LyService) GetTariffAndPrice(sku model.LySku) model.LySku {
transformedLadderPrice
[
index
]
.
PriceAc
=
c
.
MyRound
(
c
.
MulFloat
(
price
.
PriceAc
,
2.25
),
4
)
}
sku
.
Tariff
=
2.25
sku
.
TariffFormat
=
"125%"
}
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