|  |  | @ -70,16 +70,19 @@ public class SysSmsServiceImpl extends BaseServiceImpl<SysSmsDao, SysSmsEntity> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     @Override | 
			
		
	
		
			
				
					|  |  |  |     public void send(SysSmsDTO sysSmsDTO) { | 
			
		
	
		
			
				
					|  |  |  |         logger.info(String.format("发送短信接口(/message/sms/send)入参:%s", JSON.toJSONString(sysSmsDTO))); | 
			
		
	
		
			
				
					|  |  |  |         LinkedHashMap<String, String> map; | 
			
		
	
		
			
				
					|  |  |  |         try { | 
			
		
	
		
			
				
					|  |  |  |             map = JSON.parseObject(sysSmsDTO.getParams(), LinkedHashMap.class); | 
			
		
	
		
			
				
					|  |  |  |         }catch (Exception e){ | 
			
		
	
		
			
				
					|  |  |  |             logger.error(String.format("发送短信异常,ErrorCode:%s,异常%s",ErrorCode.JSON_FORMAT_ERROR,e.getMessage())); | 
			
		
	
		
			
				
					|  |  |  |             throw new RenException(ErrorCode.JSON_FORMAT_ERROR); | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         //短信服务
 | 
			
		
	
		
			
				
					|  |  |  |         AbstractSmsService service = SmsFactory.build(); | 
			
		
	
		
			
				
					|  |  |  |         if(service == null){ | 
			
		
	
		
			
				
					|  |  |  |             logger.error("发送短信异常,ErrorCode:%s,异常AbstractSmsService is null",ModuleErrorCode.SMS_CONFIG); | 
			
		
	
		
			
				
					|  |  |  |             throw new RenException(ModuleErrorCode.SMS_CONFIG); | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |         //发送短信
 | 
			
		
	
	
		
			
				
					|  |  | @ -162,13 +165,15 @@ public class SysSmsServiceImpl extends BaseServiceImpl<SysSmsDao, SysSmsEntity> | 
			
		
	
		
			
				
					|  |  |  |             sysSmsDTO.setMobile(formDTO.getMobile()); | 
			
		
	
		
			
				
					|  |  |  |             sysSmsDTO.setParams(paramJson); | 
			
		
	
		
			
				
					|  |  |  |             sysSmsDTO.setAliyunTemplateCode(formDTO.getAliyunTemplateCode()); | 
			
		
	
		
			
				
					|  |  |  |             Result result = epmetMessageOpenFeignClient.send(sysSmsDTO); | 
			
		
	
		
			
				
					|  |  |  |             this.send(sysSmsDTO); | 
			
		
	
		
			
				
					|  |  |  |             data.setCode(codeStr); | 
			
		
	
		
			
				
					|  |  |  |             /*Result result = epmetMessageOpenFeignClient.send(sysSmsDTO); | 
			
		
	
		
			
				
					|  |  |  |             if (result != null && result.success()) { | 
			
		
	
		
			
				
					|  |  |  |                 data.setCode(codeStr); | 
			
		
	
		
			
				
					|  |  |  |             } else { | 
			
		
	
		
			
				
					|  |  |  |                 logger.error(String.format("短信验证码发送失败,手机号:%s。code:%d,msg:%s", formDTO.getMobile(), result.getCode(), result.getMsg())); | 
			
		
	
		
			
				
					|  |  |  |                 throw new RenException(EpmetErrorCode.MESSAGE_SMS_SEND_ERROR.getCode()); | 
			
		
	
		
			
				
					|  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |             }*/ | 
			
		
	
		
			
				
					|  |  |  |         } catch (Exception e) { | 
			
		
	
		
			
				
					|  |  |  |             e.printStackTrace(); | 
			
		
	
		
			
				
					|  |  |  |             logger.error(String.format("短信验证码发送失败,手机号:%s。errorMessage:%s", formDTO.getMobile(), e.getMessage())); | 
			
		
	
	
		
			
				
					|  |  | 
 |