Skip to content

Commit 87a7ba4

Browse files
committed
modify:delete user need id number
1 parent 30059a9 commit 87a7ba4

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

XEngine_Source/MQCore_DBModule/DBModule_MQUser/DBModule_MQUser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ bool CDBModule_MQUser::DBModule_MQUser_UserDelete(XENGINE_PROTOCOL_USERINFO* pSt
234234
XCHAR tszSQLStatement[1024];
235235
memset(tszSQLStatement, '\0', sizeof(tszSQLStatement));
236236

237-
_xstprintf(tszSQLStatement, _X("DELETE FROM `UserInfo` WHERE tszUserName = '%s' AND tszUserPass = '%s'"), pSt_UserInfo->tszUserName, pSt_UserInfo->tszUserPass);
237+
_xstprintf(tszSQLStatement, _X("DELETE FROM `UserInfo` WHERE tszUserName = '%s' AND tszUserPass = '%s' AND nIDNumber = '%lld'"), pSt_UserInfo->tszUserName, pSt_UserInfo->tszUserPass, pSt_UserInfo->nIDNumber);
238238
if (!DataBase_MySQL_Execute(xhDBSQL, tszSQLStatement))
239239
{
240240
DBModule_IsErrorOccur = true;

XEngine_Source/XEngine_MQServiceApp/MQService_TCPTask.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ bool MessageQueue_TCP_Handle(XENGINE_PROTOCOLHDR* pSt_ProtocolHdr, LPCXSTR lpszC
192192
memset(&st_HTTPParament, '\0', sizeof(XCLIENT_APIHTTP));
193193

194194
st_HTTPParament.nTimeConnect = 2;
195-
196195
ProtocolModule_Packet_PassUser(&st_UserInfo, tszSDBuffer, &nSDLen, XENGINE_COMMUNICATION_PROTOCOL_OPERATOR_CODE_MQ_REQUSERREG);
197196
APIClient_Http_Request(_X("POST"), st_ServiceCfg.st_XPass.tszPassRegister, tszSDBuffer, &nHTTPCode, NULL, NULL, NULL, NULL, &st_HTTPParament);
198197
if (200 != nHTTPCode)
@@ -266,7 +265,6 @@ bool MessageQueue_TCP_Handle(XENGINE_PROTOCOLHDR* pSt_ProtocolHdr, LPCXSTR lpszC
266265
return false;
267266
}
268267
}
269-
270268
pSt_ProtocolHdr->wReserve = 0;
271269
XENGINE_DBUSERKEY st_UserKey;
272270
XENGINE_DBTOPICOWNER st_DBOwner;

0 commit comments

Comments
 (0)