忽略部分服务器返回的错误消息

框架跟进
This commit is contained in:
MrZ_26
2022-10-25 19:40:24 +08:00
parent 4913deb15f
commit 2d6d897e2a
10 changed files with 7 additions and 17 deletions

View File

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