Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions code/http/httprequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,10 @@ bool HttpRequest::UserVerify(const string &name, const string &pwd, bool isLogin
LOG_DEBUG( "Insert error!");
flag = false;
}
flag = true;
else flag = true;
}
SqlConnPool::Instance()->FreeConn(sql);
// RAII机制自动释放
// SqlConnPool::Instance()->FreeConn(sql);
LOG_DEBUG( "UserVerify success!!");
return flag;
}
Expand Down Expand Up @@ -264,4 +265,4 @@ std::string HttpRequest::GetPost(const char* key) const {
return post_.find(key)->second;
}
return "";
}
}