【http】接口添加失败回调事件
parent
63dc0dc0c2
commit
11f72d4e73
|
@ -181,7 +181,7 @@ end
|
||||||
|
|
||||||
require("Base.HttpCrypt")
|
require("Base.HttpCrypt")
|
||||||
local CRYPT_KEY = "d53b3e8ef74bf72d8aafce3a1c8671a0"
|
local CRYPT_KEY = "d53b3e8ef74bf72d8aafce3a1c8671a0"
|
||||||
function this:SendGetHttp(url, callback)
|
function this:SendGetHttp(url, callback, _, _, failCB)
|
||||||
local request = url
|
local request = url
|
||||||
LogGreen("Http请求:"..request)
|
LogGreen("Http请求:"..request)
|
||||||
if AppConst.Platform == "IOS" then
|
if AppConst.Platform == "IOS" then
|
||||||
|
@ -199,7 +199,7 @@ function this:SendGetHttp(url, callback)
|
||||||
if callback then
|
if callback then
|
||||||
callback(msg)
|
callback(msg)
|
||||||
end
|
end
|
||||||
end, nil, nil, nil)
|
end, nil, nil, failCB)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue