Commit 622c5106 authored by rlgy's avatar rlgy

锁仓,批量导入名单时,数量是按照10^-8计算

parent d5745a9b
......@@ -47,7 +47,7 @@ class CoinReleaseMemberController extends BaseController
//获取token信息
$rid = $this->getRuleId();
$model = CoinPublishRule::findOne($rid);
$rule=CoinPublish::findOne($model->pid);
$rule = CoinPublish::findOne($model->pid);
return $this->render('form', ['token' => $rule->coin_name_en]);
} else {
if (Yii::$app->request->isPost) {
......@@ -115,6 +115,7 @@ class CoinReleaseMemberController extends BaseController
array_shift($data);
}
foreach ($data as $key => &$value) {
$value[3] *= 1e8;
$value[] = $value[3] * (100 - $present) / 100;
$value[] = $value[3] * $present / 100;
}
......
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