From 8be8ca7cb40647745192a66c44401d0f05836db6 Mon Sep 17 00:00:00 2001 From: czm Date: Wed, 30 Dec 2020 15:06:48 +0800 Subject: [PATCH] admin page and log update --- .../spring/security/RestAuthenticationSuccessHandler.java | 2 +- .../com/mindskip/xzs/controller/student/UserController.java | 2 +- .../com/mindskip/xzs/controller/wx/student/UserController.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestAuthenticationSuccessHandler.java b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestAuthenticationSuccessHandler.java index 860139e..be25580 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestAuthenticationSuccessHandler.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestAuthenticationSuccessHandler.java @@ -34,7 +34,7 @@ public class RestAuthenticationSuccessHandler extends SimpleUrlAuthenticationSuc User springUser = (User) authentication.getPrincipal(); com.mindskip.xzs.domain.User user = userService.getUserByUserName(springUser.getUsername()); UserEventLog userEventLog = new UserEventLog(user.getId(), user.getUserName(), user.getRealName(), new Date()); - userEventLog.setContent(user.getUserName() + " 登录了学之思考试系统"); + userEventLog.setContent(user.getUserName() + " 登录了Tek Systems出题系统"); eventPublisher.publishEvent(new UserEvent(userEventLog)); com.mindskip.xzs.domain.User newUser = new com.mindskip.xzs.domain.User(); newUser.setUserName(user.getUserName()); diff --git a/source/xzs/src/main/java/com/mindskip/xzs/controller/student/UserController.java b/source/xzs/src/main/java/com/mindskip/xzs/controller/student/UserController.java index d8671b9..d3ac58f 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/controller/student/UserController.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/controller/student/UserController.java @@ -69,7 +69,7 @@ public class UserController extends BaseApiController { user.setDeleted(false); userService.insertByFilter(user); UserEventLog userEventLog = new UserEventLog(user.getId(), user.getUserName(), user.getRealName(), new Date()); - userEventLog.setContent("欢迎 " + user.getUserName() + " 注册来到学之思考试系统"); + userEventLog.setContent("欢迎 " + user.getUserName() + " 注册来到Tek Systems出题系统"); eventPublisher.publishEvent(new UserEvent(userEventLog)); return RestResponse.ok(); } diff --git a/source/xzs/src/main/java/com/mindskip/xzs/controller/wx/student/UserController.java b/source/xzs/src/main/java/com/mindskip/xzs/controller/wx/student/UserController.java index 81f1e4b..9d66fff 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/controller/wx/student/UserController.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/controller/wx/student/UserController.java @@ -71,7 +71,7 @@ public class UserController extends BaseWXApiController { user.setDeleted(false); userService.insertByFilter(user); UserEventLog userEventLog = new UserEventLog(user.getId(), user.getUserName(), user.getRealName(), new Date()); - userEventLog.setContent("欢迎 " + user.getUserName() + " 注册来到学之思考试系统"); + userEventLog.setContent("欢迎 " + user.getUserName() + " 注册来到Tek Systems出题系统"); eventPublisher.publishEvent(new UserEvent(userEventLog)); return RestResponse.ok(); }