|
@@ -253,7 +253,7 @@ int fwdb::QueryUser(std::string strusername,std::string & strvalidtime, std::str
|
|
|
std::cout<<query.lastError().text().toLatin1().data()<<std::endl;
|
|
|
strerrorcode = "SQL Error.";
|
|
|
mmutexdb.unlock();
|
|
|
- return 0;
|
|
|
+ return -1;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -265,8 +265,16 @@ int fwdb::QueryUser(std::string strusername,std::string & strvalidtime, std::str
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
+ else
|
|
|
+ {
|
|
|
+ strerrorcode = "No this user.";
|
|
|
+ mmutexdb.unlock();
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+ mmutexdb.unlock();
|
|
|
+
|
|
|
strerrorcode = "No this user.";
|
|
|
return 0;
|
|
|
}
|