1
This commit is contained in:
parent
30ceefe6cf
commit
6c9ac88da1
@ -1068,6 +1068,10 @@ void Player::RecalcRedPoint()
|
|||||||
{
|
{
|
||||||
Player* hum = PlayerMgr::Instance()->GetPlayerByAccountId(param.sender.GetString());
|
Player* hum = PlayerMgr::Instance()->GetPlayerByAccountId(param.sender.GetString());
|
||||||
if (hum) {
|
if (hum) {
|
||||||
|
if (data_set && data_set->size() > 0) {
|
||||||
|
a8::SetBitFlag(hum->red_point_flags_, RPF_Apply);
|
||||||
|
hum->SyncRedPoint();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
auto on_error =
|
auto on_error =
|
||||||
@ -1079,10 +1083,8 @@ void Player::RecalcRedPoint()
|
|||||||
DBEngine::Instance()->ExecAsyncQuery
|
DBEngine::Instance()->ExecAsyncQuery
|
||||||
(
|
(
|
||||||
conn_info,
|
conn_info,
|
||||||
"SELECT idx, applyid, target_id, sender_id, sender_nickname, "
|
"SELECT idx, applyid "
|
||||||
" sender_avatar_url, sender_sex, sender_data_version1, "
|
"FROM friend_apply WHERE idx > %d AND target_id='%s' AND status=0 LIMIT 1;",
|
||||||
" sender_user_value1, sender_user_value2, sender_user_value3, status "
|
|
||||||
"FROM friend_apply WHERE idx > %d AND target_id='%s' AND status=0;",
|
|
||||||
{
|
{
|
||||||
last_apply_idx_,
|
last_apply_idx_,
|
||||||
myself.base_data.account_id
|
myself.base_data.account_id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user