| 
					
				 | 
			
			
				@@ -24,6 +24,18 @@ $prize = function() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return $info;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 };
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+$role_id = Dever::input('search_option_role_id');
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+$update = false;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+if ($role_id) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $role_info = Dever::db('setting/role')->find($role_id);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if ($role_info && $role_info['type'] == 2 && $role_info['area'] < 3) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $update = 'text';
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 return array
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 (
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     # 表名
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -56,7 +68,7 @@ return array 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             'match'     => 'is_numeric',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             'update'    => 'hidden',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             'search'    => 'hidden',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            'value'     => Dever::input('search_option_role_id'),
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            'value'     => $role_id,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             'list'      => 'Dever::load("setting/role-one#name", {role_id})',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ),
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -103,7 +115,7 @@ return array 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             'default'   => '0',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             'desc'      => '直推区内数值',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             'match'     => 'is_string',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            'update'    => 'text',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            'update'    => $update,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //'search'    => 'fulltext',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //'list'      => true,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ),
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -115,7 +127,7 @@ return array 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             'default'   => '0',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             'desc'      => '直推区外数值',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             'match'     => 'is_string',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            'update'    => 'text',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            'update'    => $update,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //'search'    => 'fulltext',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //'list'      => true,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ),
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -127,7 +139,7 @@ return array 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             'default'   => '0',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             'desc'      => '非直推区内数值',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             'match'     => 'is_string',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            'update'    => 'text',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            'update'    => $update,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //'search'    => 'fulltext',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //'list'      => true,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ),
 
			 |