添加头像路径

This commit is contained in:
clay 2021-06-15 08:53:48 +08:00
parent f1d103ab1e
commit b90603080e
3 changed files with 14 additions and 3 deletions

View File

@ -70,6 +70,7 @@ public class LoginController {
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
modelMap.put("createTime", format.format(account.getRegistrationTime()));
modelMap.put("email", account.getEmail());
modelMap.put("imgUrl", account.getImgUrl());
modelMap.put("identity", account.getIdentityId());
modelMap.put("expiration", 1800000);
return new Result<Map<String, Object>>(true, modelMap);

View File

@ -28,6 +28,7 @@ public class Account {
private Date registrationTime;
private String ncryptedProble;
private String ncryptedAnswers;
private String imgUrl;
public Account() {
@ -58,6 +59,15 @@ public class Account {
this.ncryptedAnswers = ncryptedAnswers;
}
public String getImgUrl() {
return imgUrl;
}
public void setImgUrl(String imgUrl) {
this.imgUrl = imgUrl;
}
public Integer getId() {
return id;
}

View File

@ -24,11 +24,11 @@ spring.servlet.multipart.maxRequestSize=200MB
# 数据库dataSource
jdbc.driver=8zQIdS8RzOBmd4qRctgYdYM/fdvrjnIJHyQH1bD/jNs=
#服务器本地127.0.0.1
jdbc.url=jdbc:mysql://127.0.0.1:3306/express?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
jdbc.urls=jdbc:mysql://127.0.0.1:3306/express?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
#azure
jdbc.urls=jdbc:mysql://13.75.92.40:3306/express?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
jdbc.url=jdbc:mysql://13.75.92.40:3306/mall?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
#服务器ip
jdbc.username=express
jdbc.username=mall
jdbc.password=dr4ap4dbnyCMZTcr
# Mybatis