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
b59cef35
Commit
b59cef35
authored
5 years ago
by
shajiaiming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/cross_chain' into 'master'
fix See merge request
!103
parents
3794327b
25569505
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
ExchangeBusiness.php
common/business/ExchangeBusiness.php
+1
-1
CrossChainController.php
console/controllers/CrossChainController.php
+4
-3
No files found.
common/business/ExchangeBusiness.php
View file @
b59cef35
...
...
@@ -85,7 +85,7 @@ class ExchangeBusiness
goto
doEnd
;
}
if
(
strtoupper
(
$tag
)
==
'RYH'
||
strtoupper
(
$tag
)
==
'WL'
||
strtoupper
(
$tag
)
==
'ETS'
||
strtoupper
(
$tag
)
==
'LIMS'
||
strtoupper
(
$tag
)
==
'AT'
||
strtoupper
(
$tag
)
==
'BTJ'
)
{
if
(
strtoupper
(
$tag
)
==
'RYH'
||
strtoupper
(
$tag
)
==
'
CNDT'
||
strtoupper
(
$tag
)
==
'
WL'
||
strtoupper
(
$tag
)
==
'ETS'
||
strtoupper
(
$tag
)
==
'LIMS'
||
strtoupper
(
$tag
)
==
'AT'
||
strtoupper
(
$tag
)
==
'BTJ'
)
{
$quotation
=
[
'low'
=>
0
,
'high'
=>
0
,
...
...
This diff is collapsed.
Click to expand it.
console/controllers/CrossChainController.php
View file @
b59cef35
...
...
@@ -33,8 +33,8 @@ class CrossChainController extends Controller
continue
;
}
go
(
function
()
use
(
$val
)
{
\Co
::
sleep
(
0.5
);
//
go(function () use ($val) {
//
\Co::sleep(0.5);
$node_params
=
$val
[
'transfer_url'
];
$node_params
=
explode
(
':'
,
$node_params
);
$node_params
=
[
...
...
@@ -62,7 +62,7 @@ class CrossChainController extends Controller
}
$currentModel
->
save
();
});
//
});
}
echo
date
(
'Y-m-d H:i:s'
)
.
'跨链交易成功'
.
PHP_EOL
;
return
0
;
...
...
@@ -89,6 +89,7 @@ class CrossChainController extends Controller
$send_result
=
$val
[
'send_result'
];
$result
=
$service
->
QueryTransaction
(
$send_result
);
if
(
-
1
==
$result
[
'code'
])
{
if
(
'tx not exist'
==
$result
[
'msg'
])
continue
;
$msg
=
$result
[
'msg'
];
$query_result
=
$result
[
'code'
];
goto
doEnd
;
...
...
This diff is collapsed.
Click to expand it.
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