1
This commit is contained in:
parent
1a1fe81447
commit
82cc2b15b7
@ -1,7 +1,7 @@
|
||||
project(textserver)
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
set(GAME_ID 9006)
|
||||
set(GAME_ID 9002)
|
||||
|
||||
if (${RELEASE})
|
||||
set(CMAKE_BUILD_TYPE "Release")
|
||||
|
@ -45,14 +45,14 @@ public:
|
||||
{
|
||||
if (!f8::IsOnlineEnv()) {
|
||||
if (f8::IsTestEnv()) {
|
||||
res_path = a8::Format("/root/pub/%d/%d/conf_test/game%d/res/",
|
||||
res_path = a8::Format("/root/pub/%d/%d/conf_test/game%d/textserver.test/res/",
|
||||
{
|
||||
GAME_ID,
|
||||
App::Instance()->instance_id,
|
||||
GAME_ID,
|
||||
});
|
||||
} else {
|
||||
res_path = a8::Format("/root/pub/%d/%d/conf_test/game%d/res/",
|
||||
res_path = a8::Format("/root/pub/%d/%d/conf_test/game%d/textserver.dev/res/",
|
||||
{
|
||||
GAME_ID,
|
||||
App::Instance()->instance_id,
|
||||
|
@ -52,7 +52,7 @@ void TextMgr::__RandName(f8::JsonHttpRequest* request)
|
||||
int try_count = 0;
|
||||
while (try_count < 10) {
|
||||
name = MetaMgr::Instance()->RandName();
|
||||
if (MetaMgr::Instance()->HasDirtyWord(name)) {
|
||||
if (!MetaMgr::Instance()->HasDirtyWord(name)) {
|
||||
break;
|
||||
}
|
||||
++try_count;
|
||||
@ -73,7 +73,7 @@ void TextMgr::__IsValidName(f8::JsonHttpRequest* request)
|
||||
{
|
||||
request->resp_xobj->SetVal("errcode", 0);
|
||||
request->resp_xobj->SetVal("errmsg", "");
|
||||
std::string name = "";
|
||||
std::string name = request->request.At("name")->AsXValue();
|
||||
if (MetaMgr::Instance()->HasDirtyWord(name)) {
|
||||
request->resp_xobj->SetVal("errcode", 1);
|
||||
request->resp_xobj->SetVal("errmsg", "含有屏蔽字符");
|
||||
|
Loading…
x
Reference in New Issue
Block a user