Commit b7dae083 authored by shajiaiming's avatar shajiaiming

fix

parent 0a63c10e
......@@ -124,12 +124,12 @@ class CoinIssueCoin extends CommonActiveRecord
public function verfiySymbol($attribute, $params)
{
if (35 == $this->platform_id) {
if (6 < strlen($this->symbol) && 16 < strlen($this->symbol)) {
if (strlen($this->symbol) < 6 || strlen($this->symbol) > 16) {
$this->addError($attribute, 'Token简称需在6~16个字符');
return false;
}
} else {
if (1 < strlen($this->symbol) && 6 < strlen($this->symbol)) {
if (strlen($this->symbol) < 1 || strlen($this->symbol) > 6) {
$this->addError($attribute, 'Token简称需在1~6个字符');
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