admin page and log update

This commit is contained in:
czm 2020-12-30 15:06:48 +08:00
parent 20f6db1dc6
commit 8be8ca7cb4
3 changed files with 3 additions and 3 deletions

View File

@ -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());

View File

@ -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();
}

View File

@ -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();
}