|  |  | @ -23,7 +23,6 @@ import com.epmet.dto.result.TemplateAndAppIdResultDTO; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.mpaes.AesException; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.mpaes.WXBizMsgCrypt; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.mpaes.WXXmlToMapUtil; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.mpaes.XMLParse; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.redis.RedisThird; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.service.WarrantService; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.wxapi.constant.WxMaCodeConstant; | 
			
		
	
	
		
			
				
					|  |  | @ -39,7 +38,6 @@ import org.springframework.beans.factory.annotation.Value; | 
			
		
	
		
			
				
					|  |  |  | import org.springframework.stereotype.Service; | 
			
		
	
		
			
				
					|  |  |  | import org.springframework.transaction.annotation.Transactional; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | import javax.servlet.ServletOutputStream; | 
			
		
	
		
			
				
					|  |  |  | import javax.servlet.http.HttpServletRequest; | 
			
		
	
		
			
				
					|  |  |  | import javax.servlet.http.HttpServletResponse; | 
			
		
	
		
			
				
					|  |  |  | import java.io.IOException; | 
			
		
	
	
		
			
				
					|  |  | @ -175,10 +173,10 @@ public class WarrantServiceImpl implements WarrantService { | 
			
		
	
		
			
				
					|  |  |  |                 PrintWriter pw = response.getWriter(); | 
			
		
	
		
			
				
					|  |  |  |                 pw.write(ModuleConstant.SUCCESS); | 
			
		
	
		
			
				
					|  |  |  |                 pw.flush(); | 
			
		
	
		
			
				
					|  |  |  |             }/*else { | 
			
		
	
		
			
				
					|  |  |  |             }else { | 
			
		
	
		
			
				
					|  |  |  |                 log.info("====================  ==== event message  ========= ="); | 
			
		
	
		
			
				
					|  |  |  |                 this.replyEventMessage(request,response,event,toUserName,fromUserName); | 
			
		
	
		
			
				
					|  |  |  |             }*/ | 
			
		
	
		
			
				
					|  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |         }else if (msgType.equals(ModuleConstant.TEXT)){ | 
			
		
	
		
			
				
					|  |  |  |             // TODO 公众号回复消息
 | 
			
		
	
		
			
				
					|  |  |  |             MessagePushTextFormDTO messagePushTextFormDTO = ConvertUtils.mapToEntity(xml, MessagePushTextFormDTO.class); | 
			
		
	
	
		
			
				
					|  |  | @ -255,7 +253,10 @@ public class WarrantServiceImpl implements WarrantService { | 
			
		
	
		
			
				
					|  |  |  |             throws DocumentException, IOException { | 
			
		
	
		
			
				
					|  |  |  |         log.info("================  event + from_callback..................."); | 
			
		
	
		
			
				
					|  |  |  |         String content = event + ModuleConstant.FROM_CALLBACK; | 
			
		
	
		
			
				
					|  |  |  |         replyTextMessage(request,response,content,toUserName,fromUserName); | 
			
		
	
		
			
				
					|  |  |  |         String s = replyTextMessage(request, response, content, toUserName, fromUserName); | 
			
		
	
		
			
				
					|  |  |  |         PrintWriter pw = response.getWriter(); | 
			
		
	
		
			
				
					|  |  |  |         pw.write(s); | 
			
		
	
		
			
				
					|  |  |  |         pw.flush(); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | @ -321,7 +322,7 @@ public class WarrantServiceImpl implements WarrantService { | 
			
		
	
		
			
				
					|  |  |  |         String generate = null; | 
			
		
	
		
			
				
					|  |  |  |         try { | 
			
		
	
		
			
				
					|  |  |  |             wxBizMsgCrypt = new WXBizMsgCrypt(token,aesKey,componentAppId); | 
			
		
	
		
			
				
					|  |  |  |             generate = wxBizMsgCrypt.encryptMsg(replyMsg, String.valueOf(System.currentTimeMillis()/1000), wxBizMsgCrypt.getRandomStr()); | 
			
		
	
		
			
				
					|  |  |  |             generate = wxBizMsgCrypt.encryptMsg(replyMsg, String.valueOf(createTime), wxBizMsgCrypt.getRandomStr()); | 
			
		
	
		
			
				
					|  |  |  |         } catch (AesException e) { | 
			
		
	
		
			
				
					|  |  |  |             e.printStackTrace(); | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
	
		
			
				
					|  |  | 
 |