From e64de6124099ef2f3566d5fae03a53c3ef2f2dfc Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 18 Apr 2023 18:17:47 +0800 Subject: [PATCH] update --- internal/logic/domain/friend/friend_service.go | 6 +++--- test/tcp_conn/main.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/logic/domain/friend/friend_service.go b/internal/logic/domain/friend/friend_service.go index acb1678..f00fab9 100644 --- a/internal/logic/domain/friend/friend_service.go +++ b/internal/logic/domain/friend/friend_service.go @@ -124,8 +124,8 @@ func (*friendService) AddFriend(ctx context.Context, userId, friendId int64, rem if description == "社交人脉圈添加好友" { return FriendService.AgreeAddFriend(ctx, friendId, userId, description) - } else if description == "抖省客服自动添加" { - return FriendService.AgreeAddFriend(ctx, friendId, userId, "抖省客服自动添加") + } else if description == "客服自动添加" { + return FriendService.AgreeAddFriend(ctx, friendId, userId, "客服") } else { if respFriend.User.IsAutoAddedFriends == 1 { return FriendService.AgreeAddFriend(ctx, friendId, userId, "系统自动添加") @@ -185,7 +185,7 @@ func (*friendService) AgreeAddFriend(ctx context.Context, userId, friendId int64 }, true) utils.FilePutContents("push_AgreeAddFriend", utils.SerializeStr(map[string]interface{}{ - "friend_id": userId, + "friend_id": friendId, "friend_nick_name": resp.User.Nickname, "friend_avatar_url": resp.User.AvatarUrl, "err": err, diff --git a/test/tcp_conn/main.go b/test/tcp_conn/main.go index ff5b157..0dfbdae 100644 --- a/test/tcp_conn/main.go +++ b/test/tcp_conn/main.go @@ -88,7 +88,7 @@ func (c *TcpClient) SignIn() { signIn := pb.SignInInput{ UserId: c.UserId, DeviceId: c.DeviceId, - Token: "AZPQSSIJMISCDPAZQFIFVLVPSZBXDQFEYHBTUAOO", + Token: "BQGTEHYNJWSUSCICBGZOZHIQXITVLDQKDCDTPVYR", } c.Output(pb.PackageType_PT_SIGN_IN, time.Now().UnixNano(), &signIn) }