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
3db2739c
Commit
3db2739c
authored
May 29, 2019
by
shajiaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打币确认
parent
b75dc2a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
Chain33Business.php
common/business/Chain33Business.php
+2
-2
ReleaseCheckController.php
console/controllers/ReleaseCheckController.php
+2
-1
No files found.
common/business/Chain33Business.php
View file @
3db2739c
...
@@ -255,9 +255,9 @@ class Chain33Business
...
@@ -255,9 +255,9 @@ class Chain33Business
* @param array $hashes
* @param array $hashes
* @return array
* @return array
*/
*/
public
static
function
getTxByHashs
(
$hashes
)
public
static
function
getTxByHashs
(
$hashes
,
$node_params
=
[]
)
{
{
$service
=
new
Chain33Service
();
$service
=
new
Chain33Service
(
$node_params
);
return
$service
->
getTxByHashes
(
$hashes
);
return
$service
->
getTxByHashes
(
$hashes
);
}
}
...
...
console/controllers/ReleaseCheckController.php
View file @
3db2739c
...
@@ -124,7 +124,8 @@ class ReleaseCheckController extends Controller
...
@@ -124,7 +124,8 @@ class ReleaseCheckController extends Controller
foreach
(
$coin_release_checkItems
as
$coin_release_check
){
foreach
(
$coin_release_checkItems
as
$coin_release_check
){
$coin_release_list
=
CoinReleaseList
::
findOne
(
$coin_release_check
->
list_id
);
$coin_release_list
=
CoinReleaseList
::
findOne
(
$coin_release_check
->
list_id
);
if
(
$coin_release_list
)
{
if
(
$coin_release_list
)
{
$result
=
Chain33Business
::
getTxByHashs
([
$coin_release_check
->
txhash
]);
$node_params
=
Yii
::
$app
->
params
[
'chain_parallel'
][
'secondary'
];
$result
=
Chain33Business
::
getTxByHashs
([
$coin_release_check
->
txhash
],
$node_params
);
if
(
$result
[
'code'
]
==
0
)
{
if
(
$result
[
'code'
]
==
0
)
{
$result
=
$result
[
'result'
][
'txs'
][
0
][
'receipt'
][
'ty'
]
??
0
;
$result
=
$result
[
'result'
][
'txs'
][
0
][
'receipt'
][
'ty'
]
??
0
;
if
(
$result
==
1
)
{
if
(
$result
==
1
)
{
...
...
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