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