1
This commit is contained in:
parent
5943ad3871
commit
4bf67c25ec
@ -84,6 +84,7 @@ type FriendMgr interface {
|
|||||||
AsyncDeleteFriend(string, string, func(int32, string))
|
AsyncDeleteFriend(string, string, func(int32, string))
|
||||||
AsyncAddBlack(string, string, func(int32, string))
|
AsyncAddBlack(string, string, func(int32, string))
|
||||||
AsyncRemoveBlack(string, string, func(int32, string))
|
AsyncRemoveBlack(string, string, func(int32, string))
|
||||||
|
AsyncHasApply(string, func(int32, string, int32))
|
||||||
}
|
}
|
||||||
|
|
||||||
type Guild interface {
|
type Guild interface {
|
||||||
@ -113,6 +114,7 @@ type GuildMgr interface {
|
|||||||
AsyncSearch(int64, string, func(int32, string, int64, []string))
|
AsyncSearch(int64, string, func(int32, string, int64, []string))
|
||||||
AsyncGetGuildLogs(string, string, func(int32, string))
|
AsyncGetGuildLogs(string, string, func(int32, string))
|
||||||
AsyncUpdateGuild(string, string, map[int32]string, func(int32, string))
|
AsyncUpdateGuild(string, string, map[int32]string, func(int32, string))
|
||||||
|
AsyncHasApply(string, func(int32, string, int32))
|
||||||
|
|
||||||
NotifyGuildMsg(string, proto.Message)
|
NotifyGuildMsg(string, proto.Message)
|
||||||
}
|
}
|
||||||
|
@ -325,6 +325,10 @@ func (this *friendMgr) AsyncRemoveBlack(senderId string, targetId string, cb fun
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (this *friendMgr) AsyncHasApply(string, func(int32, string, int32)) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
func (this *friendMgr) addFriendShip(accountId1 string, accountId2 string, addTime int32) {
|
func (this *friendMgr) addFriendShip(accountId1 string, accountId2 string, addTime int32) {
|
||||||
{
|
{
|
||||||
friends := this.getFriends(accountId1)
|
friends := this.getFriends(accountId1)
|
||||||
|
@ -813,6 +813,10 @@ func (this *guildMgr) AsyncGetRecommendGuild(num int32, cb func(int32, string, [
|
|||||||
cb(0, "", guildIds)
|
cb(0, "", guildIds)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (this *guildMgr) AsyncHasApply(string, func(int32, string, int32)) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
func (this *guildMgr) rearrangement() {
|
func (this *guildMgr) rearrangement() {
|
||||||
this.guildRankList = []*guild{}
|
this.guildRankList = []*guild{}
|
||||||
this.guildRankHash = make(map[string]*guild)
|
this.guildRankHash = make(map[string]*guild)
|
||||||
|
@ -866,7 +866,20 @@ func (this *player) CMGuildLogs(hdr *f5.MsgHdr, msg *cs.CMGuildLogs) {
|
|||||||
|
|
||||||
func (this *player) CMRedDot(hdr *f5.MsgHdr, msg *cs.CMRedDot) {
|
func (this *player) CMRedDot(hdr *f5.MsgHdr, msg *cs.CMRedDot) {
|
||||||
rspMsg := new(cs.SMRedDot)
|
rspMsg := new(cs.SMRedDot)
|
||||||
|
var flags int64
|
||||||
|
GetFriendMgr().AsyncHasApply(this.GetAccountId(),
|
||||||
|
func (errCode int32, errMsg string, num int32) {
|
||||||
|
if num > 0 {
|
||||||
|
q5.SetBitFlag(&flags, 0)
|
||||||
|
}
|
||||||
|
GetGuildMgr().AsyncHasApply(this.GetAccountId(),
|
||||||
|
func (errCode int32, errMsg string, num int32) {
|
||||||
|
if num > 0 {
|
||||||
|
q5.SetBitFlag(&flags, 1)
|
||||||
|
}
|
||||||
this.SendMsg(rspMsg)
|
this.SendMsg(rspMsg)
|
||||||
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *player) onOffline() {
|
func (this *player) onOffline() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user