Skip to content

Commit 8c19384

Browse files
committed
modify:get online user list ver url parament now
1 parent 8d91e7d commit 8c19384

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

XEngine_Source/XEngine_MQServiceApp/MQService_HttpTask.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,12 @@ bool MessageQueue_Http_Handle(RFCCOMPONENTS_HTTP_REQPARAM* pSt_HTTPParam, LPCXST
9393
//获取在线用户 http://127.0.0.1:5202/api?function=get&method=online&type=0
9494
int nListCount = 0;
9595
XCHAR** pptszListAddr;
96-
96+
if (nUrlCount < 2)
97+
{
98+
ProtocolModule_Packet_Http(tszPKTBuffer, &nPKTLen, 400, "url parament is incorrent");
99+
XEngine_MQXService_Send(lpszClientAddr, tszPKTBuffer, nPKTLen, XENGINE_MQAPP_NETTYPE_HTTP);
100+
return false;
101+
}
97102
BaseLib_OperatorString_GetKeyValue(ppSt_ListUrl[2], _X("="), tszKey, tszValue);
98103
SessionModule_Client_GetListAddr(&pptszListAddr, &nListCount, _ttxoi(tszValue));
99104
ProtocolModule_Packet_OnlineList(tszPKTBuffer, &nPKTLen, &pptszListAddr, nListCount);

0 commit comments

Comments
 (0)