Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
35bfb0e4
Commit
35bfb0e4
authored
Dec 19, 2018
by
linj
Committed by
vipwzw
Dec 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 查询订单状态不对
parent
163efeb9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
query.go
plugin/dapp/trade/executor/query.go
+2
-0
No files found.
plugin/dapp/trade/executor/query.go
View file @
35bfb0e4
...
@@ -614,6 +614,7 @@ func (t *trade) loadOrderFromKey(key []byte) *pty.ReplyTradeOrder {
...
@@ -614,6 +614,7 @@ func (t *trade) loadOrderFromKey(key []byte) *pty.ReplyTradeOrder {
return
nil
return
nil
}
}
reply
.
TradedBoardlot
=
sellOrder
.
SoldBoardlot
reply
.
TradedBoardlot
=
sellOrder
.
SoldBoardlot
reply
.
Status
=
sellOrder
.
Status
return
reply
return
reply
}
else
if
strings
.
HasPrefix
(
string
(
key
),
buyIDPrefix
)
{
}
else
if
strings
.
HasPrefix
(
string
(
key
),
buyIDPrefix
)
{
txHash
:=
strings
.
Replace
(
string
(
key
),
buyIDPrefix
,
"0x"
,
1
)
txHash
:=
strings
.
Replace
(
string
(
key
),
buyIDPrefix
,
"0x"
,
1
)
...
@@ -629,6 +630,7 @@ func (t *trade) loadOrderFromKey(key []byte) *pty.ReplyTradeOrder {
...
@@ -629,6 +630,7 @@ func (t *trade) loadOrderFromKey(key []byte) *pty.ReplyTradeOrder {
return
nil
return
nil
}
}
reply
.
TradedBoardlot
=
buyOrder
.
BoughtBoardlot
reply
.
TradedBoardlot
=
buyOrder
.
BoughtBoardlot
reply
.
Status
=
buyOrder
.
Status
return
reply
return
reply
}
}
txResult
,
err
:=
getTx
(
key
,
t
.
GetLocalDB
())
txResult
,
err
:=
getTx
(
key
,
t
.
GetLocalDB
())
...
...
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