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
2d2b885c
Commit
2d2b885c
authored
Feb 25, 2020
by
shajiaiming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into feature/issue_coin
parents
eef8919a
7dae5baa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
IssueCoinController.php
api/controllers/IssueCoinController.php
+1
-1
WalletChainController.php
api/controllers/WalletChainController.php
+8
-8
No files found.
api/controllers/IssueCoinController.php
View file @
2d2b885c
...
...
@@ -159,7 +159,7 @@ class IssueCoinController extends BaseController
$model
->
setScenario
(
CoinIssueCoin
::
SCENARIOS_CREATE_MALL
);
}
$model
->
load
(
$
result
,
''
);
$model
->
load
(
$
params
,
''
);
if
(
!
$model
->
save
())
{
$msg
=
$model
->
errors
;
...
...
api/controllers/WalletChainController.php
View file @
2d2b885c
...
...
@@ -106,14 +106,14 @@ class WalletChainController extends BaseController
goto
doEnd
;
}
//
$node_params = Yii::$app->params['para'];
//
$service = new Chain33Service($node_params);
//
$result = $service->addPara($params['platform'], $params['host'] . ':' . $params['port']);
//
if (0 != $result['code']) {
//
$this->code = $result['code'];
//
$this->msg = $result['msg'];
//
goto doEnd;
//
}
$node_params
=
Yii
::
$app
->
params
[
'para'
];
$service
=
new
Chain33Service
(
$node_params
);
$result
=
$service
->
addPara
(
$params
[
'platform'
],
$params
[
'host'
]
.
':'
.
$params
[
'port'
]);
if
(
0
!=
$result
[
'code'
])
{
$this
->
code
=
$result
[
'code'
];
$this
->
msg
=
$result
[
'msg'
];
goto
doEnd
;
}
$model
->
save
();
$this
->
data
=
(
int
)
Yii
::
$app
->
p_sources
->
getLastInsertID
();
...
...
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