This commit is contained in:
aozhiwei 2022-12-29 11:28:46 +08:00
parent 7c1b5c67a7
commit aeaed6ff14
4 changed files with 11 additions and 4 deletions

View File

@ -184,9 +184,9 @@ std::string MetaMgr::GetText(const std::string& textid, const std::string& def_t
if (itr != loader_->text_hash.end()) { if (itr != loader_->text_hash.end()) {
return itr->second; return itr->second;
} }
#if 1 #if DEBUG
return "";
#else
return loader_->text_hash.empty() ? def_text : ""; return loader_->text_hash.empty() ? def_text : "";
#else
return "";
#endif #endif
} }

View File

@ -844,6 +844,8 @@ void Player::_CMGuildCreate(f8::MsgHdr& hdr, const cs::CMGuildCreate& msg)
SendMsg(respmsg); SendMsg(respmsg);
return; return;
} }
#ifdef DEBUG
#else
if (role_data.today_create_guild_times >= MAX_DAILY_CREATE_GUILD_TIMES) { if (role_data.today_create_guild_times >= MAX_DAILY_CREATE_GUILD_TIMES) {
ShowErrorMsg(TEXT("today_create_guild_times_not_enough", "今日创建战队次数已达上限")); ShowErrorMsg(TEXT("today_create_guild_times_not_enough", "今日创建战队次数已达上限"));
respmsg.set_errcode(1); respmsg.set_errcode(1);
@ -851,6 +853,7 @@ void Player::_CMGuildCreate(f8::MsgHdr& hdr, const cs::CMGuildCreate& msg)
SendMsg(respmsg); SendMsg(respmsg);
return; return;
} }
#endif
++role_data.today_create_guild_times; ++role_data.today_create_guild_times;
std::string ip; std::string ip;

View File

@ -94,7 +94,7 @@ void DbToGuildBasic(const std::vector<std::string>& row, cs::MFGuildBasic* guild
guild->set_owner_id(row[9]); guild->set_owner_id(row[9]);
guild->set_owner_name(row[10]); guild->set_owner_name(row[10]);
guild->set_owner_avatar_url(row[11]); guild->set_owner_avatar_url(row[11]);
guild->set__guild_status(a8::XValue(row[12])); guild->set__guild_status(a8::XValue(row[15]));
guild->set_join_unlimited(a8::XValue(row[16])); guild->set_join_unlimited(a8::XValue(row[16]));
guild->set_join_cond1(a8::XValue(row[17])); guild->set_join_cond1(a8::XValue(row[17]));
guild->set_join_cond2(a8::XValue(row[18])); guild->set_join_cond2(a8::XValue(row[18]));

View File

@ -176,5 +176,9 @@ std::string MetaMgr::ReplaceDirtyWord(const std::string& text, char c)
std::string MetaMgr::GetText(const std::string& textid, const std::string& def_text) std::string MetaMgr::GetText(const std::string& textid, const std::string& def_text)
{ {
auto itr = loader_->text_hash.find(textid); auto itr = loader_->text_hash.find(textid);
#ifdef DEBUG
return itr != loader_->text_hash.end() ? itr->second : def_text;
#else
return itr != loader_->text_hash.end() ? itr->second : ""; return itr != loader_->text_hash.end() ? itr->second : "";
#endif
} }