Skip to content

Commit 81ef5ba

Browse files
committed
fix bug messages
1 parent 8b40b6f commit 81ef5ba

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

user_controller.cc

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@ typedef void (*HandlerFunc)(const Json::Value &, std::string *, int *);
1010
void userInit(std::string username)
1111
{
1212
std::string sender="FlypenTeam";
13-
std::string message0="Welcome to flypen! We are glad to see you here!";
14-
std::string message0="Our course design is mainly divided into two modules :1. Chat module; 2. File editing module.We will introduce this module.";
15-
std::string message0="Initially, you only have FlypenTeam. You can send and receive friend requests by going to [More] →[New friends] in the upper left corner.";
16-
std::string message0="To use the file sharing function, you can go to [more] →[Group wiki] in the upper left corner to experience the addition, deletion, modification and checking of files.";
17-
std::string message0="However, do not modify or delete files at will to avoid affecting the experience of others";
18-
sql_addhistory( sender, username, message0, "0");
13+
std::string message[5];
14+
message[0]="Welcome to flypen! We are glad to see you here!";
15+
message[1]="Our course design is mainly divided into two modules :1. Chat module; 2. File editing module.We will introduce this module.";
16+
message[2]="Initially, you only have FlypenTeam. You can send and receive friend requests by going to [More] →[New friends] in the upper left corner.";
17+
message[3]="To use the file sharing function, you can go to [more] →[Group wiki] in the upper left corner to experience the addition, deletion, modification and checking of files.";
18+
message[4]="However, do not modify or delete files at will to avoid affecting the experience of others";
19+
for(int i= 0; i<5;i++)
20+
sql_addhistory( sender, username, message[i], "0");
21+
1922
return ;
2023
}
2124

0 commit comments

Comments
 (0)