Commit 74c65456 authored by shajiaiming's avatar shajiaiming

fix

parent b6900249
......@@ -92,7 +92,7 @@ class CoinIssueCoin extends CommonActiveRecord
public function verfiyAmount($attribute, $params)
{
$issue_record = CoinIssueRecord::find()->where(['platform_id' => $this->platform_id])->sum('total');
$issue_record = CoinIssueCoin::find()->where(['platform_id' => $this->platform_id])->sum('total');
$issue_record = empty($issue_record) ? 0 : $issue_record;
if ($issue_record + $this->$attribute >= 900) {
$this->addError($attribute, '最大发行量900亿,目前已发行' . $issue_record . '亿');
......
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