Commit 6ca99721 authored by shajiaiming's avatar shajiaiming

fix

parent e67f3812
......@@ -135,8 +135,8 @@ class CoinIssueCoin extends CommonActiveRecord
// }
// }
if (!preg_match('/^(?![0-9]+$)(?![A-Z]+$)[0-9A-Z]{2,16}$/', $this->symbol)) {
$this->addError($attribute, 'Token简称必须为大写字符和数字');
if (!preg_match('/^([A-Z0-9]){2,16}$/', $this->symbol)) {
$this->addError($attribute, 'Token简称必须为大写字母或数字');
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