提交 830ee160 authored 作者: 李秋林's avatar 李秋林

发送手机号验证码、开放小程序登录时OPENID、PHONE为空验证

上级 d66c44bc
......@@ -55,9 +55,8 @@ public class WeChatUserQueryController {
}
private void phontAndOpenIdVerify(WxTemporaryLoginVo wxTemporaryLoginVo) {
// todo 上线开放
// if (StringUtils.isBlank(wxTemporaryLoginVo.getOpenId()) || StringUtils.isBlank(wxTemporaryLoginVo.getPhone())) {
// throw new ParamException(RCode.LOGIN_PARAM_ERROR, null);
// }
if (StringUtils.isBlank(wxTemporaryLoginVo.getOpenId()) || StringUtils.isBlank(wxTemporaryLoginVo.getPhone())) {
throw new ParamException(RCode.LOGIN_PARAM_ERROR, null);
}
}
}
......@@ -44,9 +44,8 @@ public class TencentCoreServiceImpl implements TencentCoreService {
log.info("腾讯云短信,发送验证码:{}-{}", phone, phoneVerCode);
redisCache.addToMinute(redisKey, phoneVerCode, overdueLong);
// todo 上线开放
// boolean succss = tencentUtils.sendSmsPhoneVerCode(phone, phoneVerCode);
boolean succss = true;
boolean succss = tencentUtils.sendSmsPhoneVerCode(phone, phoneVerCode);
// boolean succss = true;
if (!succss) {
redisCache.removeKey(redisKey);
log.info("腾讯云短信发送失败:删除验证码:{}-{}", phone, phoneVerCode);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论