dever 6 years ago
parent
commit
94ca1e928b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      content/database/author.php

+ 3 - 3
content/database/author.php

@@ -26,10 +26,10 @@ return array
 		'name'		=> array
 		(
 			'type' 		=> 'varchar-32',
-			'name' 		=> '作者名称-只能是汉字,长度不能超过8个汉字',
+			'name' 		=> '作者名称-长度不能超过16个字',
 			'default' 	=> '',
-			'desc' 		=> '请输入作者名称,只能是汉字,长度不能超过8个汉字',
-			'match' 	=> Dever::rule('zh', '/u', '2,8'),
+			'desc' 		=> '请输入作者名称,长度不能超过16个字',
+			'match' 	=> Dever::rule('name', '/g', '1,16'),
 			'update'	=> 'text',
 			'search'	=> 'fulltext',
 			'list'		=> true,