dever 6 년 전
부모
커밋
ac7e7ecd78
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      content/database/author.php

+ 2 - 2
content/database/author.php

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