| | |
| | | public class Sms106Send { |
| | | |
| | | private static final String URL = "http://www.qf106.com/sms.aspx"; |
| | | private static final String ID = "16880"; |
| | | private static final String ACCOUNT = "ywg"; |
| | | private static final String PASSWORD = "1!qaz2@wsx"; |
| | | private static final String ID = "16909"; |
| | | private static final String ACCOUNT = "ywgfw"; |
| | | private static final String PASSWORD = "ywgfw123456"; |
| | | |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | public static boolean sendVerifyCode(String phone, String code, int time) { |
| | | String msg = "您的验证码是{},请在{}分钟内输入,请勿泄露给他人,如非本人操作,请及时修改密码。"; |
| | | String msg = "药王谷手机验证码是{},请在{}分钟内输入,请勿泄露给他人,如非本人操作,请及时修改密码。"; |
| | | String content = StrUtil.format(msg, code, time); |
| | | return request(phone, content, "验证码"); |
| | | } |
| | |
| | | |
| | | // 发送手机验证码 |
| | | if (AppContants.ACCOUNT_TYPE_MOBILE.equals(type)) { |
| | | // boolean result = Sms106Send.sendVerifyCode(account, code.toString(), 2); |
| | | boolean result = ZzSmsSend.sendALiYun(account, code.toString()); |
| | | boolean result = Sms106Send.sendVerifyCode(account, code.toString(), 2); |
| | | // boolean result = ZzSmsSend.sendALiYun(account, code.toString()); |
| | | // boolean result = ZzSmsSend.sendVerifyCode(account, code.toString(), 2); |
| | | if (result) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | |
| | | // 发送手机验证码 |
| | | if (AppContants.ACCOUNT_TYPE_MOBILE.equals(type)) { |
| | | |
| | | // boolean result = Sms106Send.sendVerifyCode(account, code.toString(), 2); |
| | | boolean result = ZzSmsSend.sendALiYun(account, code.toString()); |
| | | boolean result = Sms106Send.sendVerifyCode(account, code.toString(), 2); |
| | | // 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); |