1
This commit is contained in:
parent
6746a909e7
commit
65a440d178
@ -262,15 +262,17 @@ func (this *player) CMDeleteFriendShip(hdr *f5.MsgHdr, msg *cs.CMDeleteFriendShi
|
|||||||
{constant.MEMBER_LOCK_KEY, this.GetAccountId()},
|
{constant.MEMBER_LOCK_KEY, this.GetAccountId()},
|
||||||
{constant.MEMBER_LOCK_KEY, msg.GetTargetAccountId()},
|
{constant.MEMBER_LOCK_KEY, msg.GetTargetAccountId()},
|
||||||
},
|
},
|
||||||
func (cb *f5.LockAsyncTask) {
|
func (task *f5.LockAsyncTask) {
|
||||||
GetFriendMgr().AsyncDeleteFriend(
|
GetFriendMgr().AsyncDeleteFriend(
|
||||||
this.GetAccountId(),
|
this.GetAccountId(),
|
||||||
msg.GetTargetAccountId(),
|
msg.GetTargetAccountId(),
|
||||||
func (errCode int32, errMsg string) {
|
func (errCode int32, errMsg string) {
|
||||||
if errCode != 0 {
|
if errCode != 0 {
|
||||||
|
task.SetFail()
|
||||||
this.SendMsg(rspMsg.Err(500, "server internal error"))
|
this.SendMsg(rspMsg.Err(500, "server internal error"))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
task.SetSucc()
|
||||||
this.SendMsg(rspMsg)
|
this.SendMsg(rspMsg)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user