Commit 12a68dfc by 邓实川 Committed by chenzg

测试服务器邮件发送

parent acdcc8a0
......@@ -644,8 +644,7 @@ public class LoginController {
@GetMapping(value = "/band/{empNum}")
public Result<Object> bandEmail(@PathVariable Integer empNum) {
boolean result = QyzxEmpLogin.builder().id(empNum).emailStatus(1).build().updateById();
if (result) {
if (QyzxEmpLogin.builder().id(empNum).emailStatus(1).build().updateById()) {
return ResultUtil.success("绑定成功");
}
return ResultUtil.error("绑定失败");
......
......@@ -87,8 +87,8 @@ spring:
invert: false # Whether images should be inverted for dark terminal themes.
mail:
host: smtp.qq.com
username:
password:
username: 544939826@qq.com
password: cxvkrjyjzfpbbbce
default-encoding: utf-8
# mybatis-plus
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment