| | |
| | | return new com.aliyun.dysmsapi20170525.Client(config); |
| | | } |
| | | |
| | | private static final String SIGNNAME = "汇达农业"; |
| | | private static final String SIGNNAME = "钱阿姨"; |
| | | private static final String TEMPLATECODE = "SMS_251041117"; |
| | | public static boolean sendALiYun(String phone,String TemplateParam){ |
| | | com.aliyun.dysmsapi20170525.Client client = null; |
| | |
| | | boolean result = ZzSmsSend.sendALiYun(account, code.toString()); |
| | | if (result) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | boolean flag = redisUtils.set(AppContants.VERIFY_CODE_PREFIX + account, code, 120); |
| | | boolean flag = redisUtils.set(AppContants.VERIFY_CODE_PREFIX + account, code, 300); |
| | | map.put("code", flag); |
| | | return new FebsResponse().success().message("验证码发送成功"); |
| | | } |