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, msg.GetTargetAccountId()},
|
||||
},
|
||||
func (cb *f5.LockAsyncTask) {
|
||||
func (task *f5.LockAsyncTask) {
|
||||
GetFriendMgr().AsyncDeleteFriend(
|
||||
this.GetAccountId(),
|
||||
msg.GetTargetAccountId(),
|
||||
func (errCode int32, errMsg string) {
|
||||
if errCode != 0 {
|
||||
task.SetFail()
|
||||
this.SendMsg(rspMsg.Err(500, "server internal error"))
|
||||
return
|
||||
}
|
||||
task.SetSucc()
|
||||
this.SendMsg(rspMsg)
|
||||
})
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user