From b90603080e249b4a91ccca92be776ceed108aedc Mon Sep 17 00:00:00 2001 From: clay <20932067@zju.edu.cn> Date: Tue, 15 Jun 2021 08:53:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=A4=B4=E5=83=8F=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tomey/api/express/controller/LoginController.java | 1 + .../java/live/tomey/api/express/entity/Account.java | 10 ++++++++++ src/main/resources/application.properties | 6 +++--- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/main/java/live/tomey/api/express/controller/LoginController.java b/src/main/java/live/tomey/api/express/controller/LoginController.java index 706a9f8..032ece5 100644 --- a/src/main/java/live/tomey/api/express/controller/LoginController.java +++ b/src/main/java/live/tomey/api/express/controller/LoginController.java @@ -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>(true, modelMap); diff --git a/src/main/java/live/tomey/api/express/entity/Account.java b/src/main/java/live/tomey/api/express/entity/Account.java index 734623b..581efa9 100644 --- a/src/main/java/live/tomey/api/express/entity/Account.java +++ b/src/main/java/live/tomey/api/express/entity/Account.java @@ -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; } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 3e61340..b093db3 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -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