Commit 2d2b885c authored by shajiaiming's avatar shajiaiming

Merge branch 'master' into feature/issue_coin

parents eef8919a 7dae5baa
...@@ -159,7 +159,7 @@ class IssueCoinController extends BaseController ...@@ -159,7 +159,7 @@ class IssueCoinController extends BaseController
$model->setScenario(CoinIssueCoin::SCENARIOS_CREATE_MALL); $model->setScenario(CoinIssueCoin::SCENARIOS_CREATE_MALL);
} }
$model->load($result, ''); $model->load($params, '');
if (!$model->save()) { if (!$model->save()) {
$msg = $model->errors; $msg = $model->errors;
......
...@@ -106,14 +106,14 @@ class WalletChainController extends BaseController ...@@ -106,14 +106,14 @@ class WalletChainController extends BaseController
goto doEnd; goto doEnd;
} }
// $node_params = Yii::$app->params['para']; $node_params = Yii::$app->params['para'];
// $service = new Chain33Service($node_params); $service = new Chain33Service($node_params);
// $result = $service->addPara($params['platform'], $params['host'] . ':' . $params['port']); $result = $service->addPara($params['platform'], $params['host'] . ':' . $params['port']);
// if (0 != $result['code']) { if (0 != $result['code']) {
// $this->code = $result['code']; $this->code = $result['code'];
// $this->msg = $result['msg']; $this->msg = $result['msg'];
// goto doEnd; goto doEnd;
// } }
$model->save(); $model->save();
$this->data = (int)Yii::$app->p_sources->getLastInsertID(); $this->data = (int)Yii::$app->p_sources->getLastInsertID();
......
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