取消USER的username域,USERS独立为模块用于管理所有用户信息缓存(还未测试)

This commit is contained in:
MrZ626
2021-04-16 01:28:30 +08:00
parent d041b0e993
commit aacb11a22b
7 changed files with 89 additions and 30 deletions

View File

@@ -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")

View File

@@ -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