Commit 5f06e776 authored by rlgy's avatar rlgy

update

parent 8190bd1a
......@@ -54,8 +54,8 @@ class CoinReleaseMemberController extends BaseController
$post['rule_id'] = $rule_id;
$coin_publish_rule = CoinPublishRule::findOne($rule_id);
if ($coin_publish_rule) {
$post['release'] = $post['amount'] * (100 - $coin_publish_rule->lock) / 100;
$post['freeze'] = $post['amount'] * $coin_publish_rule->lock / 100;
$post['release'] = 1e8 * $post['amount'] * (100 - $coin_publish_rule->lock) / 100;
$post['freeze'] = 1e8 * $post['amount'] * $coin_publish_rule->lock / 100;
} else {
return ['code' => -1, 'msg' => '规则不存在'];
}
......@@ -71,8 +71,6 @@ class CoinReleaseMemberController extends BaseController
}
if ($model->load($post) && $model->validate()) {
$model->amount = $model->amount * 1e8;
$model->release = $model->release * 1e8;
$model->freeze = $model->freeze * 1e8;
if ($model->save()) {
return ['code' => 0, 'msg' => '添加成功'];
}
......
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