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

Skip to content

Commit 343b6ea

Browse files
committed
用户进入记录log
1 parent a9986af commit 343b6ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/logic/book.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ func (this *book) AddUser(user, serverId int, isUid bool) *UserData {
125125
if userData, ok = this.users[user]; ok {
126126
this.rwMutex.Unlock()
127127

128+
logger.Infoln("user:", user, "had enter")
129+
128130
userData.InitMessageQueue(serverId)
129131
userData.onlineDuartion += time.Now().Sub(userData.lastAccessTime)
130132
userData.lastAccessTime = time.Now()

0 commit comments

Comments
 (0)