This commit is contained in:
aozhiwei 2020-11-24 13:36:42 +08:00
parent c727f7dfe3
commit e21b14ab63

View File

@ -247,8 +247,9 @@ void DBHelper::AddFriendApply(Player* hum, const std::string& target_id)
conn_info, conn_info,
"INSERT INTO `friend_apply`(applyid, target_id, sender_id, sender_nickname, " "INSERT INTO `friend_apply`(applyid, target_id, sender_id, sender_nickname, "
" sender_avatar_url, sender_sex, sender_data_version1, " " sender_avatar_url, sender_sex, sender_data_version1, "
" createtime, sender_user_value1, sender_user_value2, sender_user_value3, status)" " createtime, sender_user_value1, sender_user_value2, sender_user_value3, status, "
"VALUES(%d, '%s', '%s', '%s', '%s', %d, %d, %d, %d, %d, %d, 0);", " sender_vip_lv, sender_head)"
"VALUES(%d, '%s', '%s', '%s', '%s', %d, %d, %d, %d, %d, %d, 0, %d, %d);",
{ {
App::Instance()->NewUUID(), App::Instance()->NewUUID(),
target_id, target_id,
@ -261,6 +262,8 @@ void DBHelper::AddFriendApply(Player* hum, const std::string& target_id)
hum->myself.base_data.user_value1, hum->myself.base_data.user_value1,
hum->myself.base_data.user_value2, hum->myself.base_data.user_value2,
hum->myself.base_data.user_value3, hum->myself.base_data.user_value3,
hum->myself.base_data.vip_lv,
hum->myself.base_data.head
}, },
a8::XParams() a8::XParams()
.SetSender(hum->AccountId()) .SetSender(hum->AccountId())
@ -289,8 +292,9 @@ void DBHelper::AddGuildApply(Guild* guild, const cs::MFUserInfo& user_info)
conn_info, conn_info,
"INSERT INTO `guild_apply`(applyid, guild_id, sender_id, sender_nickname, " "INSERT INTO `guild_apply`(applyid, guild_id, sender_id, sender_nickname, "
" sender_avatar_url, sender_sex, sender_data_version1, " " sender_avatar_url, sender_sex, sender_data_version1, "
" createtime, sender_user_value1, sender_user_value2, sender_user_value3, status)" " createtime, sender_user_value1, sender_user_value2, sender_user_value3, status, "
"VALUES(%d, '%s', '%s', '%s', '%s', %d, %d, %d, %d, %d, %d, 0);", " sender_vip_lv, sender_head)"
"VALUES(%d, '%s', '%s', '%s', '%s', %d, %d, %d, %d, %d, %d, 0, %d, %d);",
{ {
App::Instance()->NewUUID(), App::Instance()->NewUUID(),
guild->GuildId(), guild->GuildId(),
@ -302,7 +306,9 @@ void DBHelper::AddGuildApply(Guild* guild, const cs::MFUserInfo& user_info)
App::Instance()->nowtime, App::Instance()->nowtime,
user_info.base_data().user_value1(), user_info.base_data().user_value1(),
user_info.base_data().user_value2(), user_info.base_data().user_value2(),
user_info.base_data().user_value3() user_info.base_data().user_value3(),
user_info.base_data().vip_lv(),
user_info.base_data().head()
}, },
a8::XParams() a8::XParams()
.SetSender(guild->GuildId()), .SetSender(guild->GuildId()),