网路库加载失败不会报错
This commit is contained in:
@@ -152,6 +152,7 @@ do--dumpTable
|
||||
end
|
||||
do--httpRequest
|
||||
client=LOADLIB("NETlib")
|
||||
if client then
|
||||
function httpRequest(tick,url,method)
|
||||
local task,err=client.httpraw{
|
||||
url=url,
|
||||
@@ -165,6 +166,11 @@ do--httpRequest
|
||||
LOG.print("NETlib error: "..err,"warn")
|
||||
end
|
||||
end
|
||||
else
|
||||
function httpRequest(tick,url,method)
|
||||
LOG.print("[NO NETlib]",5,color.yellow)
|
||||
end
|
||||
end
|
||||
end
|
||||
do--json
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user