移除部分用不到的文本,注册请求发送后按钮会消失并弹出消息,整理代码

This commit is contained in:
MrZ626
2021-06-15 18:07:52 +08:00
parent 8127a999b3
commit e0997f0ecb
10 changed files with 39 additions and 58 deletions

View File

@@ -78,7 +78,7 @@ local function _parse(res)
if mesType[res.type]then
return res
else
MES.new(
MES.new('warn',
"Error ws-mes type:"..(
res.type and(
res.reason and
@@ -87,8 +87,8 @@ local function _parse(res)
res.type
)or
"[NO Message]"
),
'warn')
)
)
end
end
end
@@ -208,6 +208,7 @@ function NET.register(username,email,password)
password=password,
}
})
MES.new('info',text.registerRequestSent)
end
end
function NET.tryLogin(ifAuto)