| 
					
				 | 
			
			
				@@ -1,5 +1,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package com.zanxiang.game.back.serve.oceanengine; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.zanxiang.module.util.JsonUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.zanxiang.module.util.encryption.ShaUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import lombok.AllArgsConstructor; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import lombok.Builder; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -12,6 +13,7 @@ import org.springframework.stereotype.Component; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.client.RestTemplate; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.Arrays; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.Map; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.concurrent.ThreadLocalRandom; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @Component 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -29,11 +31,11 @@ public class MiniGameCallback { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         String params = "timestamp=" + time + "&nonce=" + nonce + "&signature=" + signature; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         url = url.contains("?") ? (url + "&" + params) : (url + "?" + params); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        ResponseEntity<String> response = restTemplate.postForEntity(url, request, String.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ResponseEntity<Map> response = restTemplate.postForEntity(url, request, Map.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (response.getStatusCode().is2xxSuccessful()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        throw new OceanengineCallbackException(response.getStatusCodeValue(), response.getBody()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        throw new OceanengineCallbackException(response.getStatusCodeValue(), JsonUtil.toString(response.getBody())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Getter 
			 |