Skip to content

Commit e91105d

Browse files
committed
name bug
1 parent c5d0c5d commit e91105d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

mysql.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ void sql_add(const std::string& username, const std::string& passwd, int avatar)
269269
ptool->setString(1, username);
270270
ptool->setString(2, passwd);
271271
ptool->setInt(3, avatar);
272-
ptool->setString(4, "FlyPen Team");
272+
ptool->setString(4, "FlypenTeam");
273273
ptool->executeUpdate();
274274

275275
delete ptool;
@@ -519,4 +519,5 @@ void set_avatar(const std::string& person, int avatar)
519519
updateStatement->setInt(1, avatar);
520520
updateStatement->setString(2, person);
521521
updateStatement->execute();
522+
delete con;
522523
}

user_controller.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ using namespace drogon;
99
typedef void (*HandlerFunc)(const Json::Value &, std::string *, int *);
1010
void userInit(std::string username)
1111
{
12-
std::string sender="Flypen Team";
12+
std::string sender="FlypenTeam";
1313
std::string message="Welcome to flypen! We are glad to see you here!";
1414
sql_addhistory( sender, username, message, "0");
1515
return ;

0 commit comments

Comments
 (0)