Skip to content

Commit 3f4f9a3

Browse files
committed
modify:bswitchblack to bswitchbanned
1 parent e8f77ed commit 3f4f9a3

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

XEngine_Source/AuthorizeModule_Configure/Config_Define.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ typedef struct
118118
bool bSwitchDCode; //动态验证码
119119
bool bSwitchMulti; //多端登录开关
120120
bool bSwitchTry; //临时验证
121-
bool bSwitchBlack; //黑名单
121+
bool bSwitchBanned; //黑名单
122122
}XENGINE_FUNCTIONSWITCH;
123123
//////////////////////////////////////////////////////////////////////////
124124
// 导出的函数

XEngine_Source/AuthorizeModule_Configure/ModuleConfigure_Json/ModuleConfigure_Json.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,6 @@ bool CModuleConfigure_Json::ModuleConfigure_Json_Switch(LPCXSTR lpszConfigFile,
341341
pSt_ServerConfig->bSwitchDCode = st_JsonRoot["bSwitchDCode"].asBool();
342342
pSt_ServerConfig->bSwitchMulti = st_JsonRoot["bSwitchMulti"].asBool();
343343
pSt_ServerConfig->bSwitchTry = st_JsonRoot["bSwitchTry"].asBool();
344-
pSt_ServerConfig->bSwitchBlack = st_JsonRoot["bSwitchBlack"].asBool();
344+
pSt_ServerConfig->bSwitchBanned = st_JsonRoot["bSwitchBanned"].asBool();
345345
return true;
346346
}

XEngine_Source/AuthorizeModule_Protocol/Protocol_Packet/Protocol_Packet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ bool CProtocol_Packet::Protocol_Packet_HttpSwitch(XCHAR* ptszMsgBuffer, int* pIn
660660
st_JsonRoot["bSwitchDCode"] = pSt_FunSwitch->bSwitchDCode;
661661
st_JsonRoot["bSwitchMulti"] = pSt_FunSwitch->bSwitchMulti;
662662
st_JsonRoot["bSwitchTry"] = pSt_FunSwitch->bSwitchTry;
663-
st_JsonRoot["bSwitchBlack"] = pSt_FunSwitch->bSwitchBlack;
663+
st_JsonRoot["bSwitchBanned"] = pSt_FunSwitch->bSwitchBanned;
664664

665665
*pInt_MsgLen = st_JsonRoot.toStyledString().length();
666666
memcpy(ptszMsgBuffer, st_JsonRoot.toStyledString().c_str(), *pInt_MsgLen);

XEngine_Source/AuthorizeModule_Protocol/Protocol_Parse/Protocol_Parse.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ bool CProtocol_Parse::Protocol_Parse_HttpParseSwitch(LPCXSTR lpszMsgBuffer, int
840840
pSt_FunSwitch->bSwitchDCode = st_JsonObject["bSwitchDCode"].asBool();
841841
pSt_FunSwitch->bSwitchMulti = st_JsonObject["bSwitchMulti"].asBool();
842842
pSt_FunSwitch->bSwitchTry = st_JsonObject["bSwitchTry"].asBool();
843-
pSt_FunSwitch->bSwitchBlack = st_JsonObject["bSwitchBlack"].asBool();
843+
pSt_FunSwitch->bSwitchBanned = st_JsonObject["bSwitchBanned"].asBool();
844844

845845
return true;
846846
}

XEngine_Source/XEngine_APPService/XEngine_AuthorizeApp/Authorize_Dialog/Dialog_Switch.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ void CDialog_Switch::OnBnClickedButton1()
234234
m_RadioTryOPen.SetCheck(BST_UNCHECKED);
235235
m_RadioTryClose.SetCheck(BST_CHECKED);
236236
}
237-
if (st_JsonRoot["bSwitchBlack"].asBool())
237+
if (st_JsonRoot["bSwitchBanned"].asBool())
238238
{
239239
m_RadioBlackOPen.SetCheck(BST_CHECKED);
240240
m_RadioBlackClose.SetCheck(BST_UNCHECKED);
@@ -363,11 +363,11 @@ void CDialog_Switch::OnBnClickedButton2()
363363

364364
if (BST_CHECKED == m_RadioBlackOPen.GetCheck())
365365
{
366-
st_JsonObject["bSwitchBlack"] = true;
366+
st_JsonObject["bSwitchBanned"] = true;
367367
}
368368
else
369369
{
370-
st_JsonObject["bSwitchBlack"] = false;
370+
st_JsonObject["bSwitchBanned"] = false;
371371
}
372372
st_JsonRoot["st_SwitchInfo"] = st_JsonObject;
373373
st_JsonRoot["xhToken"] = _ttxoll(m_StrToken.GetBuffer());

XEngine_Source/XEngine_APPService/XEngine_AuthorizeService/AuthorizeHTTP_Post/AuthorizeHTTP_Banned.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ bool XEngine_AuthorizeHTTP_Banned(LPCXSTR lpszClientAddr, LPCXSTR lpszAPIName, L
1111

1212
memset(tszSDBuffer, '\0', sizeof(tszSDBuffer));
1313

14-
if (!st_FunSwitch.bSwitchBlack)
14+
if (!st_FunSwitch.bSwitchBanned)
1515
{
1616
Protocol_Packet_HttpComm(tszSDBuffer, &nSDLen, 503, "the function is closed");
1717
XEngine_Client_TaskSend(lpszClientAddr, tszSDBuffer, nSDLen, XENGINE_AUTH_APP_NETTYPE_HTTP);

XEngine_Source/XEngine_APPService/XEngine_AuthorizeService/AuthorizeHTTP_Post/AuthorizeHTTP_User.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ bool XEngine_AuthorizeHTTP_User(LPCXSTR lpszClientAddr, LPCXSTR lpszAPIName, LPC
7676
{
7777
bSuccess = DBModule_MySQL_BannedExist(&st_Banned);
7878
}
79-
if (!bSuccess && st_FunSwitch.bSwitchBlack)
79+
if (!bSuccess && st_FunSwitch.bSwitchBanned)
8080
{
8181
Protocol_Packet_HttpComm(tszSDBuffer, &nSDLen, 423, "user name is banned");
8282
XEngine_Client_TaskSend(lpszClientAddr, tszSDBuffer, nSDLen, XENGINE_AUTH_APP_NETTYPE_HTTP);

XEngine_Source/XEngine_APPService/XEngine_AuthorizeService/Authorize_HttpTask.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ bool XEngine_Client_HttpTask(LPCXSTR lpszClientAddr, LPCXSTR lpszMsgBuffer, int
7272
{
7373
bSuccess = DBModule_MySQL_BannedExist(&st_Banned);//IP地址是否在黑名单
7474
}
75-
if (!bSuccess && st_FunSwitch.bSwitchBlack)
75+
if (!bSuccess && st_FunSwitch.bSwitchBanned)
7676
{
7777
Protocol_Packet_HttpComm(tszSDBuffer, &nSDLen, 423, "ip address is banned");
7878
XEngine_Client_TaskSend(lpszClientAddr, tszSDBuffer, nSDLen, XENGINE_AUTH_APP_NETTYPE_HTTP);

XEngine_Source/XEngine_APPService/XEngine_AuthorizeService/Authorize_TCPTask.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ bool XEngine_Client_TCPTask(LPCXSTR lpszClientAddr, LPCXSTR lpszMsgBuffer, int n
7777
{
7878
bSuccess = DBModule_MySQL_BannedExist(&st_Banned);//是否在黑名单
7979
}
80-
if (!bSuccess && st_FunSwitch.bSwitchBlack)
80+
if (!bSuccess && st_FunSwitch.bSwitchBanned)
8181
{
8282
pSt_ProtocolHdr->wReserve = 423;
8383
Protocol_Packet_HDRComm(tszSDBuffer, &nSDLen, pSt_ProtocolHdr, nNetType);

XEngine_Source/XEngine_APPService/XEngine_AuthorizeService/XEngine_AuthorizeService.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ int main(int argc, char** argv)
315315
{
316316
XLOG_PRINT(xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_WARN, _X("启动服务中,信息报告给API服务器没有启用"));
317317
}
318-
XLOG_PRINT(xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO, _X("启动服务中,功能开关选项,删除功能:%d,登录功能:%d,找回密码:%d,充值功能:%d,注册功能:%d,CDKey功能:%d,公告系统:%d,动态验证:%d,多端登录:%d,临时试用:%d,黑名单功能:%d"), st_FunSwitch.bSwitchDelete, st_FunSwitch.bSwitchLogin, st_FunSwitch.bSwitchPass, st_FunSwitch.bSwitchPay, st_FunSwitch.bSwitchRegister, st_FunSwitch.bSwitchCDKey, st_FunSwitch.bSwitchNotice, st_FunSwitch.bSwitchDCode, st_FunSwitch.bSwitchMulti, st_FunSwitch.bSwitchTry, st_FunSwitch.bSwitchBlack);
318+
XLOG_PRINT(xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO, _X("启动服务中,功能开关选项,删除功能:%d,登录功能:%d,找回密码:%d,充值功能:%d,注册功能:%d,CDKey功能:%d,公告系统:%d,动态验证:%d,多端登录:%d,临时试用:%d,黑名单功能:%d"), st_FunSwitch.bSwitchDelete, st_FunSwitch.bSwitchLogin, st_FunSwitch.bSwitchPass, st_FunSwitch.bSwitchPay, st_FunSwitch.bSwitchRegister, st_FunSwitch.bSwitchCDKey, st_FunSwitch.bSwitchNotice, st_FunSwitch.bSwitchDCode, st_FunSwitch.bSwitchMulti, st_FunSwitch.bSwitchTry, st_FunSwitch.bSwitchBanned);
319319

320320
pSt_File = _xtfopen(st_AuthConfig.st_XVerification.st_XCDKey.tszKeyFile, _X("rb"));
321321
if (NULL == pSt_File)

0 commit comments

Comments
 (0)