Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit faaafd1

Browse files
committed
先每次都记录登录时间
1 parent bce53d5 commit faaafd1

File tree

1 file changed

+3
-0
lines changed
  • websites/code2/studygolang/src/logic

1 file changed

+3
-0
lines changed

websites/code2/studygolang/src/logic/user.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,9 @@ func (self UserLogic) FindCurrentUser(ctx context.Context, username interface{})
310310
MsgNum: DefaultMessage.FindNotReadMsgNum(ctx, user.Uid),
311311
}
312312

313+
// TODO: 先每次都记录登录时间
314+
self.RecordLoginTime(user.Username)
315+
313316
if user.IsRoot {
314317
me.IsAdmin = true
315318
return me

0 commit comments

Comments
 (0)