dever 7 years ago
parent
commit
8ef32b1671
1 changed files with 8 additions and 1 deletions
  1. 8 1
      database/user.php

+ 8 - 1
database/user.php

@@ -36,7 +36,9 @@ $bind = array
 );
 
 $email = Dever::rule('email');
+$email = 'option';
 $mobile = Dever::rule('mobile');
+$mobile = 'option';
 
 
 return array
@@ -83,7 +85,12 @@ return array
 			'desc' 		=> '请输入用户手机号',
 			'match' 	=> $mobile,
 			'update'	=> 'text',
-			'search'	=> 'fulltext',
+			'search'	=> 'fulltext,exist',
+			'exist'		=> array
+			(
+				'yes' => '有值',
+				'no' => '没有值',
+			),
 			'list'		=> true,
 		),