Commit f7bd975f authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/issue_coin' into develop

parents 7d8e48f4 bb412335
......@@ -130,7 +130,7 @@ class IssueCoinController extends BaseController
'platform_id' => $platform_id,
'chain_id' => $chain_id,
'charge_unit' => isset($result['charge_unit']) ? $result['charge_unit'] : '',
'charge' => $coin_platform->issue_charge,
'charge' => (CoinIssueCoin::TYPE_NO == $result['type']) ? $coin_platform->issue_charge : 0,
];
$model->load($result, '');
if (!$model->save()) {
......
......@@ -263,7 +263,7 @@ class ExploreAppController extends BaseController
}
unset($params['name']);
$params['name'] = $name;
if ($model->load($params, '') && $model->update()) {
if ($model->load($params, '') && $model->save()) {
goto doEnd;
}
$msg = $model->errors;
......
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