This commit is contained in:
Ren RenJuan 2014-02-01 00:06:26 +00:00
parent 2bb8a495de
commit 70e438feee
1 changed files with 6 additions and 7 deletions

View File

@ -24,8 +24,8 @@ typedef auto_ptr<Session> AC_SESSION;
bool acTkInitialised = false, fatal = false, done = false, transferGainer, bool acTkInitialised = false, fatal = false, done = false, transferGainer,
bindError; bindError;
char *thisName = "registrar.ote"; const char *thisName = "registrar.ote";
string thisRegistry("Unknown"), thatAccount("Unknown"), thisAccount("Unknown"),shitName(thisName); string thisRegistry("Unknown"), thatAccount("Unknown"), thisAccount("Unknown"), shitName;
int cmd=0,debug=1000; int cmd=0,debug=1000;
string op("newInstance"); string op("newInstance");
@ -66,7 +66,7 @@ typedef auto_ptr<Session> AC_SESSION;
} }
shitName = parms[thisCase]["name"].asString(); shitName = parms[thisCase]["name"].asString();
thisName = (char *)shitName.c_str(); thisName = shitName.c_str();
return true; return true;
} }
@ -75,7 +75,6 @@ typedef auto_ptr<Session> AC_SESSION;
if (!parms[thisCase].isMember("cont_id")) { if (!parms[thisCase].isMember("cont_id")) {
ACPRODINOTE::bindError = true; ACPRODINOTE::bindError = true;
theseLogs->logN(1,"(%d) no 'cont_id' field",cmd); theseLogs->logN(1,"(%d) no 'cont_id' field",cmd);
return false; return false;
@ -87,8 +86,8 @@ typedef auto_ptr<Session> AC_SESSION;
inline bool checkPWDOK(Json::Value thisPW) { inline bool checkPWDOK(Json::Value thisPW) {
if (thisPW.isNull() || !thisPW.asString().compare("auth.error")) { if (!parms[thisCase].isMember("cont_id")) {
ACPRODINOTE::bindError = true;
theseLogs->logN(1,"(%d) no 'cont_pw' field",cmd); theseLogs->logN(1,"(%d) no 'cont_pw' field",cmd);
return false; return false;