diff --git a/modules/friend/api_cross_zan.go b/modules/friend/api_cross_zan.go index 85d828b5d..1eadeb9e1 100644 --- a/modules/friend/api_cross_zan.go +++ b/modules/friend/api_cross_zan.go @@ -4,6 +4,7 @@ import ( "go_dreamfactory/comm" "go_dreamfactory/lego/sys/log" "go_dreamfactory/pb" + cfg "go_dreamfactory/sys/configure/structs" "go_dreamfactory/utils" ) @@ -117,7 +118,14 @@ func (this *apiComp) Zan(session comm.IUserSession, req *pb.FriendZanReq) (errda rsp := &pb.FriendZanResp{ Flag: 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) // 赠送X次友情点