| | |
| | | import com.xcong.excoin.utils.OssUtils; |
| | | import com.xcong.excoin.utils.RedisUtils; |
| | | import com.xcong.excoin.utils.SmsUtils; |
| | | import com.xcong.excoin.utils.mail.Sms106Send; |
| | | import com.xcong.excoin.utils.mail.SmsSend; |
| | | import com.xcong.excoin.utils.mail.SubMailSend; |
| | | import io.swagger.annotations.Api; |
| | |
| | | |
| | | // 发送手机验证码 |
| | | if (AppContants.ACCOUNT_TYPE_MOBILE.equals(type)) { |
| | | boolean result = SmsSend.sendVerifyCode(account, code.toString(), 2); |
| | | boolean result = Sms106Send.sendVerifyCode(account, code.toString(), 2); |
| | | 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, 600); |
| | | map.put("code", flag); |
| | | return Result.ok(MessageSourceUtils.getString("member_service_0010"), map); |
| | | } |