Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
search_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
a8e0a668
authored
Dec 29, 2020
by
huangchengyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
更新梯度比价
parent
6b8136c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
service/parity_service.go
service/parity_service.go
View file @
a8e0a668
...
...
@@ -102,14 +102,15 @@ func (qs *ParityService) GetParity(ctx *gin.Context) (results model.LyResponse)
//比价数量对应的梯度数量
var
tprice
float64
=
0
;
//对应梯度价
for
_
,
p
:=
range
v
.
LadderPrice
{
if
p
.
Purchases
>=
gconv
.
Int
(
number
)
{
if
gconv
.
Int
(
number
)
>=
p
.
Purchases
{
//购买数量大于梯度数量
if
deliver
==
"1"
{
//大陆
tprice
=
p
.
PriceCn
}
else
{
//香港
tprice
=
p
.
PriceUs
}
}
else
{
break
;
}
}
}
if
tprice
==
0
{
//不符合梯度价跳过比价
continue
;
...
...
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