Commit 12a68dfc by 邓实川 Committed by chenzg

测试服务器邮件发送

parent acdcc8a0
...@@ -644,8 +644,7 @@ public class LoginController { ...@@ -644,8 +644,7 @@ public class LoginController {
@GetMapping(value = "/band/{empNum}") @GetMapping(value = "/band/{empNum}")
public Result<Object> bandEmail(@PathVariable Integer empNum) { public Result<Object> bandEmail(@PathVariable Integer empNum) {
boolean result = QyzxEmpLogin.builder().id(empNum).emailStatus(1).build().updateById(); if (QyzxEmpLogin.builder().id(empNum).emailStatus(1).build().updateById()) {
if (result) {
return ResultUtil.success("绑定成功"); return ResultUtil.success("绑定成功");
} }
return ResultUtil.error("绑定失败"); return ResultUtil.error("绑定失败");
......
...@@ -87,8 +87,8 @@ spring: ...@@ -87,8 +87,8 @@ spring:
invert: false # Whether images should be inverted for dark terminal themes. invert: false # Whether images should be inverted for dark terminal themes.
mail: mail:
host: smtp.qq.com host: smtp.qq.com
username: username: 544939826@qq.com
password: password: cxvkrjyjzfpbbbce
default-encoding: utf-8 default-encoding: utf-8
# mybatis-plus # 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