Skip to content

Commit ba01462

Browse files
committed
added:lua file heartbeat supported
1 parent 11584cc commit ba01462

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
function PluginCore_Init()
2+
return true
3+
end
4+
5+
function PluginCore_UnInit()
6+
end
7+
8+
function PluginCore_Call(lpszStrUrl, nListCount, lpszMsgBuffer, nMsgLen)
9+
10+
if 0 == nListCount then
11+
PInt_HTTPCode = 200
12+
PInt_MsgLen = 0
13+
elseif nListCount > 0 then
14+
PInt_HTTPCode = 200
15+
PtszMsgBuffer = "{\"code\":0,\"msg\":\"success\"}"
16+
PInt_MsgLen = #PtszMsgBuffer
17+
else
18+
PInt_HTTPCode = 200
19+
PtszMsgBuffer = "{\"code\":1002,\"msg\":\"type does not support\"}"
20+
PInt_MsgLen = #PtszMsgBuffer
21+
end
22+
23+
return true
24+
end

0 commit comments

Comments
 (0)