Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
token
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
wallet
token
Commits
3ef61437
Commit
3ef61437
authored
May 26, 2020
by
shajiaiming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/optimize' into 'master'
Feature/optimize See merge request
!340
parents
aac3320a
7612aede
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
OrderController.php
console/controllers/OrderController.php
+15
-1
No files found.
console/controllers/OrderController.php
View file @
3ef61437
...
...
@@ -161,11 +161,12 @@ class OrderController extends Controller
//3步交易情况下需要做高度判断,2步交易注释IF判断
if
(
CoinCTocTransfer
::
CONSENSUE_YES
==
$val
[
'consensus'
]
&&
true
==
$switch
&&
isset
(
$height
))
{
$last_hash
=
$result
[
'result'
][
'tx'
][
'hash'
];
$service
=
new
Chain33Service
(
$node
);
$execer
=
'paracross'
;
$func_name
=
'GetTitle'
;
$playload
=
[
'data'
=>
'user.p.'
.
$val
[
'consensus_platform'
]
.
'.'
'data'
=>
'user.p.'
.
$val
[
'consensus_platform'
]
.
'.'
];
$result
=
$service
->
chainQuery
(
$execer
,
$func_name
,
$playload
);
if
(
!
isset
(
$result
[
'result'
]))
{
...
...
@@ -175,6 +176,19 @@ class OrderController extends Controller
if
(
$consensHeight
<
$height
)
{
continue
;
}
$func_name
=
'GetAssetTxResult'
;
$playload
=
[
'data'
=>
$last_hash
];
$result
=
$service
->
chainQuery
(
$execer
,
$func_name
,
$playload
);
if
(
!
isset
(
$result
[
'result'
]))
{
continue
;
}
$tx_result
=
$result
[
'result'
][
'success'
];
if
(
false
==
$tx_result
)
{
continue
;
}
}
$currentModel
=
CoinCTocTransfer
::
findOne
(
$val
[
'id'
]);
$currentModel
->
query_result
=
$query_result
;
...
...
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