Skip to content

Commit d75470d

Browse files
committed
fixed:code of http json for packet protocol is incorrent
1 parent 57b1e57 commit d75470d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

XEngine_Source/XEngine_ModuleProtocol/ModuleProtocol_Packet/ModuleProtocol_Packet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ bool CModuleProtocol_Packet::ModuleProtocol_Packet_Common(XCHAR* ptszMsgBuffer,
6161
}
6262
Json::Value st_JsonRoot;
6363

64-
st_JsonRoot["code"] = 0;
64+
st_JsonRoot["code"] = nCode;
6565
if (NULL != lpszMsgBuffer)
6666
{
6767
st_JsonRoot["msg"] = lpszMsgBuffer;

0 commit comments

Comments
 (0)