| 
					
				 | 
			
			
				@@ -1,5 +1,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package com.fs.wx.service; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import cn.hutool.core.util.ObjectUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import cn.hutool.http.ContentType; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import cn.hutool.http.Header; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import cn.hutool.http.HttpRequest; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -91,6 +92,10 @@ public class ShippingService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (!weChatApiResponse.isSuccess()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     log.warn("微信接口返回业务错误: code={}, message={}", weChatApiResponse.getErrcode(), weChatApiResponse.getErrmsg()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if(ObjectUtil.equal(weChatApiResponse.getErrcode(),40001)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        log.info("token缓存失效,清除token,等待下次执行..."); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        weChatAuthService.clearToken(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return weChatApiResponse; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |