Skip to content

Commit 55d022b

Browse files
committed
fixed:verification reply status is incorrect
1 parent 4c242ec commit 55d022b

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

XEngine_Release/XEngine_Config/XEngine_Config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@
6969
"nVType": 1,
7070
"bEnable": false,
7171
"st_VerSwitch": {
72-
"bBackService": false,
73-
"bDeamon": false
72+
"bBackService": true,
73+
"bDeamon": true
7474
}
7575
},
7676
"XReport": {

XEngine_Source/XEngine_ServiceApp/XEngine_HttpApp/XEngine_HTTPTask.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,9 @@ bool HTTPTask_TastPost_Handle(RFCCOMPONENTS_HTTP_REQPARAM* pSt_HTTPParam, LPCXST
342342

343343
if (st_ServiceConfig.st_XVerifcation.st_VerSwitch.bBackService && !bVerification)
344344
{
345+
st_HDRParam.nHttpCode = 401;
346+
st_HDRParam.bAuth = true;
347+
st_HDRParam.bIsClose = true;
345348
ModuleProtocol_Packet_Common(tszRVBuffer, &nSDLen, 403, _X("User verification required"));
346349
HttpProtocol_Server_SendMsgEx(xhHTTPPacket, tszSDBuffer, &nSDLen, &st_HDRParam, tszRVBuffer, nRVLen);
347350
XEngine_Network_Send(lpszClientAddr, tszSDBuffer, nSDLen);
@@ -361,6 +364,9 @@ bool HTTPTask_TastPost_Handle(RFCCOMPONENTS_HTTP_REQPARAM* pSt_HTTPParam, LPCXST
361364
//守护进程接口:http://app.xyry.org:5501/api?function=deamon&params1=0
362365
if (st_ServiceConfig.st_XVerifcation.st_VerSwitch.bDeamon && !bVerification)
363366
{
367+
st_HDRParam.nHttpCode = 401;
368+
st_HDRParam.bAuth = true;
369+
st_HDRParam.bIsClose = true;
364370
ModuleProtocol_Packet_Common(tszRVBuffer, &nSDLen, 403, _X("User verification required"));
365371
HttpProtocol_Server_SendMsgEx(xhHTTPPacket, tszSDBuffer, &nSDLen, &st_HDRParam, tszRVBuffer, nRVLen);
366372
XEngine_Network_Send(lpszClientAddr, tszSDBuffer, nSDLen);

0 commit comments

Comments
 (0)