Commit a736d41f authored by shajiaiming's avatar shajiaiming

fix

parent c7303149
...@@ -101,10 +101,10 @@ class CoinIssueCoin extends CommonActiveRecord ...@@ -101,10 +101,10 @@ class CoinIssueCoin extends CommonActiveRecord
public function verfiySymbol($attribute, $params) public function verfiySymbol($attribute, $params)
{ {
if (!preg_match('/^[A-Z]+$/', $this->symbol)) { // if (!preg_match('/^[A-Z]+$/', $this->symbol)) {
$this->addError($attribute, 'Token简称必须大写'); // $this->addError($attribute, 'Token简称必须大写');
return false; // return false;
} // }
if (CoinIssueCoin::TYPE_YES == $this->type) { if (CoinIssueCoin::TYPE_YES == $this->type) {
$model = CoinIssueCoin::find()->where(['symbol' => $this->symbol, 'owner' => $this->owner, 'platform_id' => $this->platform_id, 'status' => CoinIssueCoin::STATUS_SUCCESS])->orderBy('id desc')->one(); $model = CoinIssueCoin::find()->where(['symbol' => $this->symbol, 'owner' => $this->owner, 'platform_id' => $this->platform_id, 'status' => CoinIssueCoin::STATUS_SUCCESS])->orderBy('id desc')->one();
......
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