| 
					
				 | 
			
			
				@@ -7,6 +7,7 @@ import lombok.Builder; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import lombok.Data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import lombok.Getter; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import lombok.NoArgsConstructor; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import lombok.extern.slf4j.Slf4j; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.http.ResponseEntity; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.stereotype.Component; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -16,6 +17,7 @@ import java.util.Arrays; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.Map; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.concurrent.ThreadLocalRandom; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+@Slf4j 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @Component 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 public class MiniGameCallback { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private static final ThreadLocalRandom RANDOM = ThreadLocalRandom.current(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -31,7 +33,9 @@ public class MiniGameCallback { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         String params = "timestamp=" + time + "&nonce=" + nonce + "&signature=" + signature; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         url = url.contains("?") ? (url + "&" + params) : (url + "?" + params); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        log.error("头条小游戏回传参数,url: {}, body{}", url, JsonUtil.toString(request)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ResponseEntity<Map> response = restTemplate.postForEntity(url, request, Map.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        log.error("头条小游戏回传完成:{}", JsonUtil.toString(response.getBody())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (response.getStatusCode().is2xxSuccessful()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 |