赠送友情点不用判断在线
This commit is contained in:
parent
1225755ba3
commit
f13cb072e4
@ -120,14 +120,13 @@ func (this *apiComp) Zan(session comm.IUserSession, req *pb.FriendZanReq) (errda
|
||||
}
|
||||
|
||||
// 给好友发友情点
|
||||
if s, ok := this.module.GetUserSession(target.Uid); ok { // 后面走配置
|
||||
res := &cfg.Gameatn{
|
||||
A: "attr",
|
||||
T: "friendPoint",
|
||||
N: 1,
|
||||
}
|
||||
this.module.DispenseRes(s, []*cfg.Gameatn{res}, true)
|
||||
s, _ := this.module.GetUserSession(target.Uid)
|
||||
res := &cfg.Gameatn{
|
||||
A: "attr",
|
||||
T: "friendPoint",
|
||||
N: 1,
|
||||
}
|
||||
this.module.DispenseRes(s, []*cfg.Gameatn{res}, true)
|
||||
|
||||
session.SendMsg(string(this.module.GetType()), FriendSubTypeZan, rsp)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user