|
@@ -3,6 +3,17 @@ using GFGGame;
|
|
using ET;
|
|
using ET;
|
|
namespace ET
|
|
namespace ET
|
|
{
|
|
{
|
|
|
|
+ //推送好友每日重置
|
|
|
|
+ public class NoticeFriendDailyReset : AMHandler<S2C_NoticeFriendDailyReset>
|
|
|
|
+ {
|
|
|
|
+ protected override async ETTask Run(Session session, S2C_NoticeFriendDailyReset message)
|
|
|
|
+ {
|
|
|
|
+
|
|
|
|
+ FriendSProxy.ReqAllFriendInfos().Coroutine();
|
|
|
|
+ await ETTask.CompletedTask;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
//推送其他玩家信息变化
|
|
//推送其他玩家信息变化
|
|
public class NoticeRoleInfoChanged : AMHandler<S2C_NoticeFriendInfo>
|
|
public class NoticeRoleInfoChanged : AMHandler<S2C_NoticeFriendInfo>
|
|
{
|
|
{
|
|
@@ -122,6 +133,7 @@ namespace GFGGame
|
|
{
|
|
{
|
|
if (response.Error == ErrorCode.ERR_Success)
|
|
if (response.Error == ErrorCode.ERR_Success)
|
|
{
|
|
{
|
|
|
|
+ FriendDataManager.Instance.ClearAddFriend();
|
|
for (int i = 0; i < response.FriendList.Count; i++)
|
|
for (int i = 0; i < response.FriendList.Count; i++)
|
|
{
|
|
{
|
|
|
|
|