暂时使用未完成的MES模块替换LOG模块

This commit is contained in:
MrZ626
2021-06-13 02:06:38 +08:00
parent 17e67c674b
commit 7075d7d5b2
38 changed files with 211 additions and 206 deletions

View File

@@ -118,8 +118,8 @@ function json.encode(val)
local a,b=pcall(encode,val)
if a then
return b
elseif LOG then
LOG.print(text.jsonError..": "..(b or"uknErr"),'warn')
elseif MES.new then
MES.new(text.jsonError..": "..(b or"uknErr"))
end
end
@@ -348,8 +348,8 @@ function json.decode(str)
local a,b=pcall(decode,str)
if a then
return b
elseif LOG then
LOG.print(text.jsonError..": "..(b or"uknErr"),'warn')
elseif MES.new then
MES.new(text.jsonError..": "..(b or"uknErr"))
end
end
return json