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
fc7cfdda
Commit
fc7cfdda
authored
Nov 21, 2019
by
shajiaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
交易组查询
parent
51015840
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
3 deletions
+25
-3
IssueChainTransferController.php
console/controllers/IssueChainTransferController.php
+25
-3
No files found.
console/controllers/IssueChainTransferController.php
View file @
fc7cfdda
...
...
@@ -146,11 +146,13 @@ class IssueChainTransferController extends Controller
$current_time
=
time
();
foreach
(
$model
as
$val
)
{
if
(
1
==
$step
)
{
$result
=
$service
->
QueryTransaction
(
$val
->
pre_send_transaction
);
$result
=
$this
->
queryTransaction
(
$node
,
$val
->
pre_send_transaction
);
#$result = $service->QueryTransaction($val->pre_send_transaction);
$column
=
'pre_query_transaction'
;
}
if
(
2
==
$step
)
{
$result
=
$service
->
QueryTransaction
(
$val
->
finish_send_transaction
);
$result
=
$this
->
queryTransaction
(
$node
,
$val
->
finish_send_transaction
);
#$result = $service->QueryTransaction($val->finish_send_transaction);
$column
=
'finish_query_transaction'
;
}
if
(
isset
(
$result
[
'result'
][
'actionName'
])
&&
'unknown'
==
$result
[
'result'
][
'actionName'
])
{
...
...
@@ -294,7 +296,8 @@ class IssueChainTransferController extends Controller
$service
=
new
Chain33Service
(
$node
);
$current_time
=
time
();
foreach
(
$issue_coin_model
as
$val
)
{
$result
=
$service
->
QueryTransaction
(
$val
->
revoke
->
revoke_send_transaction
);
$result
=
$this
->
QueryTransaction
(
$node
,
$val
->
revoke
->
revoke_send_transaction
);
#$result = $service->QueryTransaction($val->revoke->revoke_send_transaction);
if
(
isset
(
$result
[
'result'
][
'actionName'
])
&&
'unknown'
==
$result
[
'result'
][
'actionName'
])
{
$data
=
[
'revoke_query_transaction'
=>
'success'
...
...
@@ -381,4 +384,22 @@ class IssueChainTransferController extends Controller
$coin_issue_record
->
save
();
}
protected
function
queryTransaction
(
$node_params
,
$send_result
)
{
static
$result
=
[];
$service
=
new
Chain33Service
(
$node_params
);
$result
=
$service
->
QueryTransaction
(
$send_result
);
if
(
isset
(
$result
[
'result'
][
'receipt'
])
&&
is_array
(
$result
[
'result'
][
'receipt'
][
'logs'
]))
{
foreach
(
$result
[
'result'
][
'receipt'
][
'logs'
]
as
$log
)
{
if
(
isset
(
$log
[
'tyName'
])
&&
'logerr'
==
strtolower
(
$log
[
'tyName'
]))
{
return
$result
;
}
}
}
if
(
isset
(
$result
[
'result'
][
'tx'
][
'next'
]))
{
$this
->
queryTransaction
(
$node_params
,
$result
[
'result'
][
'tx'
][
'next'
]);
}
return
$result
;
}
}
\ No newline at end of file
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