忽略部分服务器返回的错误消息
框架跟进
This commit is contained in:
Submodule Zframework updated: b0b5981698...080c0bc552
@@ -140,12 +140,10 @@ return{
|
||||
PlayerManager={
|
||||
invalidCode="Invalid code",
|
||||
invalidEmail="Invalid email",
|
||||
invalidAccessToken="Invalid access token",
|
||||
playerNotFound="Player not found",
|
||||
noPassword="No password",
|
||||
invalidEmailPass="Invalid email or password",
|
||||
emailExists="Email exists",
|
||||
invalidRefreshToken="Invalid refresh token",
|
||||
emailSendError="Email send error",
|
||||
},
|
||||
-- Strategies
|
||||
|
||||
@@ -139,12 +139,10 @@ return{
|
||||
PlayerManager={
|
||||
-- invalidCode="Invalid code",
|
||||
-- invalidEmail="Invalid email",
|
||||
-- invalidAccessToken="Invalid access token",
|
||||
-- playerNotFound="Player not found",
|
||||
-- noPassword="No password",
|
||||
-- invalidEmailPass="Invalid email or password",
|
||||
-- emailExists="Email exists",
|
||||
-- invalidRefreshToken="Invalid refresh token",
|
||||
-- emailSendError="Email send error",
|
||||
},
|
||||
-- Strategies
|
||||
|
||||
@@ -130,12 +130,10 @@ return{
|
||||
PlayerManager={
|
||||
-- invalidCode="Invalid code",
|
||||
-- invalidEmail="Invalid email",
|
||||
-- invalidAccessToken="Invalid access token",
|
||||
-- playerNotFound="Player not found",
|
||||
-- noPassword="No password",
|
||||
-- invalidEmailPass="Invalid email or password",
|
||||
-- emailExists="Email exists",
|
||||
-- invalidRefreshToken="Invalid refresh token",
|
||||
-- emailSendError="Email send error",
|
||||
},
|
||||
-- Strategies
|
||||
|
||||
@@ -141,12 +141,10 @@ return{
|
||||
PlayerManager={
|
||||
-- invalidCode="Invalid code",
|
||||
-- invalidEmail="Invalid email",
|
||||
-- invalidAccessToken="Invalid access token",
|
||||
-- playerNotFound="Player not found",
|
||||
-- noPassword="No password",
|
||||
-- invalidEmailPass="Invalid email or password",
|
||||
-- emailExists="Email exists",
|
||||
-- invalidRefreshToken="Invalid refresh token",
|
||||
-- emailSendError="Email send error",
|
||||
},
|
||||
-- Strategies
|
||||
|
||||
@@ -141,12 +141,10 @@ return{
|
||||
PlayerManager={
|
||||
-- invalidCode="Invalid code",
|
||||
-- invalidEmail="Invalid email",
|
||||
-- invalidAccessToken="Invalid access token",
|
||||
-- playerNotFound="Player not found",
|
||||
-- noPassword="No password",
|
||||
-- invalidEmailPass="Invalid email or password",
|
||||
-- emailExists="Email exists",
|
||||
-- invalidRefreshToken="Invalid refresh token",
|
||||
-- emailSendError="Email send error",
|
||||
},
|
||||
-- Strategies
|
||||
|
||||
@@ -128,12 +128,10 @@ return{
|
||||
PlayerManager={
|
||||
-- invalidCode="Invalid code",
|
||||
-- invalidEmail="Invalid email",
|
||||
-- invalidAccessToken="Invalid access token",
|
||||
-- playerNotFound="Player not found",
|
||||
-- noPassword="No password",
|
||||
-- invalidEmailPass="Invalid email or password",
|
||||
-- emailExists="Email exists",
|
||||
-- invalidRefreshToken="Invalid refresh token",
|
||||
-- emailSendError="Email send error",
|
||||
},
|
||||
-- Strategies
|
||||
|
||||
@@ -140,12 +140,10 @@ return{
|
||||
PlayerManager={
|
||||
invalidCode="无效验证码",
|
||||
invalidEmail="无效邮箱",
|
||||
invalidAccessToken="访问令牌无效",
|
||||
playerNotFound="找不到玩家",
|
||||
noPassword="无密码",
|
||||
invalidEmailPass="邮箱或密码无效",
|
||||
emailExists="邮箱存在",
|
||||
invalidRefreshToken="刷新令牌无效",
|
||||
emailSendError="邮箱发送错误",
|
||||
},
|
||||
-- Strategies
|
||||
|
||||
@@ -140,12 +140,10 @@ return{
|
||||
PlayerManager={
|
||||
invalidCode="無效驗證碼",
|
||||
invalidEmail="無效郵箱",
|
||||
invalidAccessToken="訪問權杖無效",
|
||||
playerNotFound="找不到玩家",
|
||||
noPassword="無密碼",
|
||||
invalidEmailPass="郵箱或密碼無效",
|
||||
emailExists="郵箱存在",
|
||||
invalidRefreshToken="重繪權杖無效",
|
||||
emailSendError="郵箱發送錯誤",
|
||||
},
|
||||
-- Strategies
|
||||
|
||||
@@ -50,8 +50,14 @@ function NET.freshRoomAllReady()
|
||||
end
|
||||
|
||||
--------------------------<NEW HTTP API>
|
||||
local ignoreError={
|
||||
["Techrater.PlayerStream.notAvailable"]=true,
|
||||
["Techrater.PlayerManager.invalidAccessToken"]=true,
|
||||
["Techrater.PlayerManager.invalidRefreshToken"]=true,
|
||||
}
|
||||
local availableErrorTextType={info=1,warn=1,error=1}
|
||||
local function parseError(pathStr)
|
||||
if ignoreError[pathStr] then return end
|
||||
LOG(pathStr)
|
||||
if type(pathStr)~='string' then
|
||||
MES.new('error',"<"..tostring(pathStr)..">",5)
|
||||
|
||||
Reference in New Issue
Block a user