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

Skip to content

Commit e055ef5

Browse files
committed
新 goroutine 更新
1 parent faaafd1 commit e055ef5

File tree

1 file changed

+1
-1
lines changed
  • websites/code2/studygolang/src/logic

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ func (self UserLogic) FindCurrentUser(ctx context.Context, username interface{})
311311
}
312312

313313
// TODO: 先每次都记录登录时间
314-
self.RecordLoginTime(user.Username)
314+
go self.RecordLoginTime(user.Username)
315315

316316
if user.IsRoot {
317317
me.IsAdmin = true

0 commit comments

Comments
 (0)