Browse Source

update

master
DengBiao 1 year ago
parent
commit
e64de61240
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      internal/logic/domain/friend/friend_service.go
  2. +1
    -1
      test/tcp_conn/main.go

+ 3
- 3
internal/logic/domain/friend/friend_service.go View File

@@ -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,


+ 1
- 1
test/tcp_conn/main.go View File

@@ -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)
}


Loading…
Cancel
Save