This commit is contained in:
aozhiwei 2020-12-24 11:46:50 +08:00
parent 547a4bfb16
commit 0849fdba14
5 changed files with 16 additions and 16 deletions

View File

@ -43,7 +43,7 @@ void GameLog::Login(Player* hum)
a8::MutableXObject* prop = a8::MutableXObject::NewObject(); a8::MutableXObject* prop = a8::MutableXObject::NewObject();
prop->SetVal("channel", channel); prop->SetVal("channel", channel);
prop->SetVal("ad_channel", TEXT("you_permission_denied", "没有权限")); prop->SetVal("ad_channel", "");
prop->SetVal("gameid", game_id); prop->SetVal("gameid", game_id);
prop->SetVal("account_id", hum->AccountId()); prop->SetVal("account_id", hum->AccountId());
prop->SetVal("account_register_utctime", hum->account_registertime); prop->SetVal("account_register_utctime", hum->account_registertime);
@ -71,7 +71,7 @@ void GameLog::Logout(Player* hum)
a8::MutableXObject* prop = a8::MutableXObject::NewObject(); a8::MutableXObject* prop = a8::MutableXObject::NewObject();
prop->SetVal("channel", channel); prop->SetVal("channel", channel);
prop->SetVal("ad_channel", TEXT("you_permission_denied", "没有权限")); prop->SetVal("ad_channel", "");
prop->SetVal("gameid", game_id); prop->SetVal("gameid", game_id);
prop->SetVal("account_id", hum->AccountId()); prop->SetVal("account_id", hum->AccountId());
prop->SetVal("account_register_utctime", hum->account_registertime); prop->SetVal("account_register_utctime", hum->account_registertime);
@ -99,7 +99,7 @@ void GameLog::FriendApply(Player* hum, const std::string& account_id)
a8::MutableXObject* prop = a8::MutableXObject::NewObject(); a8::MutableXObject* prop = a8::MutableXObject::NewObject();
prop->SetVal("channel", channel); prop->SetVal("channel", channel);
prop->SetVal("ad_channel", TEXT("you_permission_denied", "没有权限")); prop->SetVal("ad_channel", "");
prop->SetVal("gameid", game_id); prop->SetVal("gameid", game_id);
prop->SetVal("account_id", hum->AccountId()); prop->SetVal("account_id", hum->AccountId());
prop->SetVal("account_register_utctime", hum->account_registertime); prop->SetVal("account_register_utctime", hum->account_registertime);
@ -128,7 +128,7 @@ void GameLog::FriendRefuse(Player* hum, long long db_idx, const std::string& acc
a8::MutableXObject* prop = a8::MutableXObject::NewObject(); a8::MutableXObject* prop = a8::MutableXObject::NewObject();
prop->SetVal("channel", channel); prop->SetVal("channel", channel);
prop->SetVal("ad_channel", TEXT("you_permission_denied", "没有权限")); prop->SetVal("ad_channel", "");
prop->SetVal("gameid", game_id); prop->SetVal("gameid", game_id);
prop->SetVal("account_id", hum->AccountId()); prop->SetVal("account_id", hum->AccountId());
prop->SetVal("account_register_utctime", hum->account_registertime); prop->SetVal("account_register_utctime", hum->account_registertime);
@ -158,7 +158,7 @@ void GameLog::FriendAgree(Player* hum, long long db_idx, const std::string& acco
a8::MutableXObject* prop = a8::MutableXObject::NewObject(); a8::MutableXObject* prop = a8::MutableXObject::NewObject();
prop->SetVal("channel", channel); prop->SetVal("channel", channel);
prop->SetVal("ad_channel", TEXT("you_permission_denied", "没有权限")); prop->SetVal("ad_channel", "");
prop->SetVal("gameid", game_id); prop->SetVal("gameid", game_id);
prop->SetVal("account_id", hum->AccountId()); prop->SetVal("account_id", hum->AccountId());
prop->SetVal("account_register_utctime", hum->account_registertime); prop->SetVal("account_register_utctime", hum->account_registertime);
@ -188,7 +188,7 @@ void GameLog::FriendDelete(Player* hum, const std::string& account_id)
a8::MutableXObject* prop = a8::MutableXObject::NewObject(); a8::MutableXObject* prop = a8::MutableXObject::NewObject();
prop->SetVal("channel", channel); prop->SetVal("channel", channel);
prop->SetVal("ad_channel", TEXT("you_permission_denied", "没有权限")); prop->SetVal("ad_channel", "");
prop->SetVal("gameid", game_id); prop->SetVal("gameid", game_id);
prop->SetVal("account_id", hum->AccountId()); prop->SetVal("account_id", hum->AccountId());
prop->SetVal("account_register_utctime", hum->account_registertime); prop->SetVal("account_register_utctime", hum->account_registertime);
@ -217,7 +217,7 @@ void GameLog::GuildCreate(Player* hum, long long guild_id, const std::string& gu
a8::MutableXObject* prop = a8::MutableXObject::NewObject(); a8::MutableXObject* prop = a8::MutableXObject::NewObject();
prop->SetVal("channel", channel); prop->SetVal("channel", channel);
prop->SetVal("ad_channel", TEXT("you_permission_denied", "没有权限")); prop->SetVal("ad_channel", "");
prop->SetVal("gameid", game_id); prop->SetVal("gameid", game_id);
prop->SetVal("account_id", hum->AccountId()); prop->SetVal("account_id", hum->AccountId());
prop->SetVal("account_register_utctime", hum->account_registertime); prop->SetVal("account_register_utctime", hum->account_registertime);

View File

@ -21,7 +21,7 @@
static void _GMOpsSelfChecking(f8::JsonHttpRequest* request) static void _GMOpsSelfChecking(f8::JsonHttpRequest* request)
{ {
request->resp_xobj->SetVal("errcode", 0); request->resp_xobj->SetVal("errcode", 0);
request->resp_xobj->SetVal("errmsg", TEXT("you_permission_denied", "没有权限")); request->resp_xobj->SetVal("errmsg", "");
request->resp_xobj->SetVal("healthy", 1); request->resp_xobj->SetVal("healthy", 1);
request->resp_xobj->SetVal("max_rundelay", 10); request->resp_xobj->SetVal("max_rundelay", 10);
} }
@ -153,7 +153,7 @@ void HandlerMgr::ProcGMMsg(unsigned long saddr, int sockhandle,
const std::string& url, const std::string& querystr) const std::string& url, const std::string& querystr)
{ {
if (url != "/webapp/index.php") { if (url != "/webapp/index.php") {
WSListener::Instance()->SendText(sockhandle, a8::HttpResponse(404, TEXT("you_permission_denied", "没有权限"))); WSListener::Instance()->SendText(sockhandle, a8::HttpResponse(404, ""));
return; return;
} }

View File

@ -236,7 +236,7 @@ void Player::_CMFriendApply(f8::MsgHdr& hdr, const cs::CMFriendApply& msg)
cs::SMFriendApply respmsg; cs::SMFriendApply respmsg;
if (GetBlackListById(msg.friend_id())) { if (GetBlackListById(msg.friend_id())) {
respmsg.set_errcode(0); respmsg.set_errcode(0);
respmsg.set_errmsg(TEXT("you_permission_denied", "没有权限")); respmsg.set_errmsg("");
SendMsg(respmsg); SendMsg(respmsg);
return; return;
} }
@ -377,7 +377,7 @@ void Player::_CMFriendAgree(f8::MsgHdr& hdr, const cs::CMFriendAgree& msg)
cs::SMFriendAgree respmsg; cs::SMFriendAgree respmsg;
if (GetFriendById(msg.apply().base_data().account_id())) { if (GetFriendById(msg.apply().base_data().account_id())) {
respmsg.set_errcode(0); respmsg.set_errcode(0);
respmsg.set_errmsg(TEXT("you_permission_denied", "没有权限")); respmsg.set_errmsg("");
SendMsg(respmsg); SendMsg(respmsg);
DBHelper::Instance()->SetFriendApplyStatus( DBHelper::Instance()->SetFriendApplyStatus(
myself.crc32_code, myself.crc32_code,
@ -647,7 +647,7 @@ void Player::_CMSetCurrPrivateChatTarget(f8::MsgHdr& hdr, const cs::CMSetCurrPri
void Player::_CMCloseChatNotify(f8::MsgHdr& hdr, const cs::CMCloseChatNotify& msg) void Player::_CMCloseChatNotify(f8::MsgHdr& hdr, const cs::CMCloseChatNotify& msg)
{ {
chat_channel = -1; chat_channel = -1;
private_target = TEXT("you_permission_denied", "没有权限"); private_target = "";
} }
void Player::_CMSendCustomMsg(f8::MsgHdr& hdr, const cs::CMSendCustomMsg& msg) void Player::_CMSendCustomMsg(f8::MsgHdr& hdr, const cs::CMSendCustomMsg& msg)

View File

@ -458,7 +458,7 @@ void PlayerMgr::AsyncLogin1(const cs::CMLogin& msg)
msg->account_id(), msg->account_id(),
1, 1,
1, 1,
TEXT("you_permission_denied", "没有权限") ""
); );
delete msg; delete msg;
}; };
@ -511,7 +511,7 @@ void PlayerMgr::AsyncLogin2(const cs::CMLogin& msg)
msg->account_id(), msg->account_id(),
2, 2,
1, 1,
TEXT("you_permission_denied", "没有权限") ""
); );
} else { } else {
PlayerMgr::Instance()->AsyncLoginOnOk PlayerMgr::Instance()->AsyncLoginOnOk
@ -543,7 +543,7 @@ void PlayerMgr::AsyncLogin2(const cs::CMLogin& msg)
msg->account_id(), msg->account_id(),
2, 2,
1, 1,
TEXT("you_permission_denied", "没有权限") ""
); );
delete msg; delete msg;
}; };

View File

@ -376,7 +376,7 @@ void SyncHelper::SS_GS_ApplyChangeRequest_TimeOut(ss::SS_GS_ApplyChangeRequest*
a8::XValue(msg->guild_id()).GetString(), a8::XValue(msg->guild_id()).GetString(),
msg->account_id(), msg->account_id(),
EVENT_GUILD_REFUSE, EVENT_GUILD_REFUSE,
TEXT("you_permission_denied", "没有权限"), "",
a8::XValue(msg->guild_id()).GetString() a8::XValue(msg->guild_id()).GetString()
); );
} }