Commit 0faab015 authored by shajiaiming's avatar shajiaiming

fix

parent f103215d
......@@ -50,6 +50,9 @@ class CoinIssueCoin extends CommonActiveRecord
public function verfiySymbol($attribute, $params)
{
$model = CoinIssueCoin::find()->where(['symbol' => $this->symbol, 'platform_id' => $this->platform_id])->orderBy('id desc')->one();
if (false == $model) {
return true;
}
if (0 == $model->category) {
$this->addError($attribute, '名称已存在');
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