Commit 67c9b8f2 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/issue_coin' into 'master'

fix See merge request !205
parents 536399a2 333cff58
......@@ -94,7 +94,7 @@ class WalletController extends BaseController
$execer = 'coins';
$result = $service->getBalance($address, $execer);
if (0 !== $result['code']) {
$msg = $result['msg'];
$msg = '当前发币人数过多,请客官稍后再试';
$code = -1;
$data = null;
goto doEnd;
......
......@@ -130,8 +130,8 @@ class CoinIssueCoin extends CommonActiveRecord
}
$issue_record = CoinIssueCoin::find()->where(['platform_id' => $this->platform_id, 'symbol' => $this->symbol, 'status' => CoinIssueCoin::STATUS_SUCCESS])->sum('total');
$issue_record = empty($issue_record) ? 0 : $issue_record;
if ($issue_record + $this->$attribute > 20) {
$this->addError($attribute, '最大发行量20亿,目前已发行' . $issue_record . '亿');
if ($issue_record + $this->$attribute > 900) {
$this->addError($attribute, '最大发行量900亿,目前已发行' . $issue_record . '亿');
return false;
}
}
......
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