Commit 6d8ab04c authored by shajiaiming's avatar shajiaiming

交易调整为3步

parent 296c448f
......@@ -21,7 +21,7 @@ class CrossChainController extends BaseController
goto doEnd;
}
$post = $request->post();
if (2 != count($post['txs'])) {
if (3 != count($post['txs'])) {
$msg = '交易笔数错误!';
goto doEnd;
}
......@@ -180,8 +180,8 @@ class CrossChainController extends BaseController
}
//交易成功,查询成功
if (true == $val['send_result'] && 'success' == $val['query_result'] && 'success' == $val['msg']) {
if (1 == $key) {
$step = (1 == $key) ? 3 : ($key + 1);
if (2 == $key) {
$step = (2 == $key) ? 4 : ($key + 2);
$code = 0;
$msg = $val['send_result'];
goto doEnd;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment