取消USER的username域,USERS独立为模块用于管理所有用户信息缓存(还未测试)
This commit is contained in:
@@ -20,7 +20,6 @@ scene.widgetList={
|
||||
if USER.uid then
|
||||
NET.wsclose_play()
|
||||
NET.wsclose_user()
|
||||
USER.username=false
|
||||
USER.uid=false
|
||||
USER.authToken=false
|
||||
FILE.save(USER,"conf/user","q")
|
||||
|
||||
@@ -38,7 +38,7 @@ function scene.keyDown(k)
|
||||
kb.isDown("4")and"r99"or
|
||||
kb.isDown("5")and"unlimited"
|
||||
)or"solo",
|
||||
(USER.username or"???").."'s room"
|
||||
(USERS.getName(USER.uid)or"???").."'s room"
|
||||
)
|
||||
lastCreateRoomTime=TIME()
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user