移除部分用不到的文本,注册请求发送后按钮会消失并弹出消息,整理代码
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user