Commit ded7b59c authored by shajiaming's avatar shajiaming

fix

parent 9a8e905d
......@@ -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();
......
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