mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	fix rules
This commit is contained in:
		| @@ -96,6 +96,7 @@ class ServerService | |||||||
|             $rules = json_decode($server->ruleSettings); |             $rules = json_decode($server->ruleSettings); | ||||||
|             // domain |             // domain | ||||||
|             if (isset($rules->domain) && !empty($rules->domain)) { |             if (isset($rules->domain) && !empty($rules->domain)) { | ||||||
|  |                 $rules->domain = array_filter($rules->domain); | ||||||
|                 $domainObj = new \StdClass(); |                 $domainObj = new \StdClass(); | ||||||
|                 $domainObj->type = 'field'; |                 $domainObj->type = 'field'; | ||||||
|                 $domainObj->domain = $rules->domain; |                 $domainObj->domain = $rules->domain; | ||||||
| @@ -104,6 +105,7 @@ class ServerService | |||||||
|             } |             } | ||||||
|             // protocol |             // protocol | ||||||
|             if (isset($rules->protocol) && !empty($rules->protocol)) { |             if (isset($rules->protocol) && !empty($rules->protocol)) { | ||||||
|  |                 $rules->protocol = array_filter($rules->protocol); | ||||||
|                 $protocolObj = new \StdClass(); |                 $protocolObj = new \StdClass(); | ||||||
|                 $protocolObj->type = 'field'; |                 $protocolObj->type = 'field'; | ||||||
|                 $protocolObj->protocol = $rules->protocol; |                 $protocolObj->protocol = $rules->protocol; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user