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
296c448f
Commit
296c448f
authored
Sep 27, 2019
by
shajiaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
节点变更
parent
8d5dcd7a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
CrossChainController.php
console/controllers/CrossChainController.php
+13
-13
No files found.
console/controllers/CrossChainController.php
View file @
296c448f
...
...
@@ -92,20 +92,21 @@ class CrossChainController extends Controller
return
0
;
}
// 正式环境查询共识高度
// $node_params = [
// 'scheme' => 'https',
// 'host' => 'jiedian1.bityuan.com',
// 'port' => 8801
// ];
//测试环境查询共识高度
//3步交易情况下需要做高度判断,2步交易注释IF判断
//正式环境查询共识高度
//3步交易情况下需要做高度判断,2步交易无须判断
$node_params
=
[
'scheme'
=>
'http'
,
'host'
=>
'
172.16.100.77
'
,
'scheme'
=>
'http
s
'
,
'host'
=>
'
jiedian1.bityuan.com
'
,
'port'
=>
8801
];
//测试环境查询共识高度
//2步交易情况下需要做高度判断
// $node_params = [
// 'scheme' => 'http',
// 'host' => '172.16.100.77',
// 'port' => 8801
// ];
$service
=
new
Chain33Service
(
$node_params
);
$result
=
$service
->
getHeight
();
$consensHeight
=
$result
[
'result'
][
'consensHeight'
];
...
...
@@ -167,10 +168,9 @@ class CrossChainController extends Controller
doEnd
:
//3步交易情况下需要做高度判断,2步交易注释IF判断
if
(
CoinCrossChain
::
RECHARGE
==
$val
[
'is_with_draw'
]
&&
$val
[
'step'
]
==
2
&&
$switch
&&
isset
(
$height
)
&&
(
$consensHeight
<
$height
))
{
if
(
CoinCrossChain
::
RECHARGE
==
(
int
)
$val
[
'is_with_draw'
]
&&
2
==
(
int
)
$val
[
'step'
]
&&
true
==
$switch
&&
isset
(
$height
)
&&
(
$consensHeight
<
$height
))
{
continue
;
}
$currentModel
=
CoinCrossChain
::
findOne
(
$val
[
'id'
]);
$currentModel
->
query_result
=
$query_result
;
$currentModel
->
msg
=
$msg
;
...
...
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