| 
					
				 | 
			
			
				@ -88,12 +88,13 @@ public class WechatInfoService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                token = wxAccessTokenService.getWxAccessTokenById(wxId).getAccessToken(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            System.out.println("getticket_token:"+token); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (token != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                String token_url = "https://api.weixin.qq.com/cgi-bin/ticket/getticket"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                String params = "access_token=" + token + "&type=jsapi"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                String result = HttpUtil.sendGet(token_url, params); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                JSONObject json = new JSONObject(result); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                System.out.println("getticket:"+result); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if (json.has("ticket")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    String ticket = json.get("ticket").toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    String expires_in = json.get("expires_in").toString(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -115,6 +116,7 @@ public class WechatInfoService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                return null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } catch (Exception e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            System.out.println(e.getMessage()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            throw new Exception(e.getMessage()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 |