Skip to content

Commit

Permalink
sms关闭
Browse files Browse the repository at this point in the history
  • Loading branch information
SerMs committed Jun 20, 2022
1 parent ac9988c commit 3b62127
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/com/ms/reggie/controller/UserController.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.ms.reggie.pojo.User;
import com.ms.reggie.service.UserService;
import com.ms.reggie.util.R;
import com.ms.reggie.util.SendMessageUtil;
import com.ms.reggie.util.ValidateCodeUtils;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
Expand Down Expand Up @@ -47,8 +46,8 @@ public R<String> sendMsg(@RequestBody User user, HttpSession session) {
//生成随机的四位随机数
String code = ValidateCodeUtils.generateValidateCode(6).toString();
//调用短信服务
Integer resultCode = SendMessageUtil.send(phone, "您正在登录湘约楼平台,请妥善保管您得验证码" + code);
log.info("生成的验证码为:{},{}", code, SendMessageUtil.getMessage(resultCode));
// Integer resultCode = SendMessageUtil.send(phone, "您正在登录湘约楼平台,请妥善保管您得验证码" + code);
// log.info("生成的验证码为:{},{}", code, SendMessageUtil.getMessage(resultCode));
//需要将生成的验证码保存到Session
log.info("验证码为:{}", code);

Expand Down
Binary file modified target/classes/com/ms/reggie/controller/UserController.class
Binary file not shown.

0 comments on commit 3b62127

Please sign in to comment.