修复猜颜色代码

This commit is contained in:
liwei1dao 2023-11-15 17:41:54 +08:00
parent 2d06b7fba1
commit d21a84e35b
2 changed files with 4 additions and 2 deletions

View File

@ -48,7 +48,7 @@ func (this *apiComp) Award(session comm.IUserSession, req *pb.DColorAwardReq) (e
for _, conf := range confs {
if req.Atype == conf.Type {
if req.Atype == 0 {
if req.Atype == 1 {
if _, ok = info.Weekaward[conf.Key]; !ok && info.Integral >= conf.Condition {
res = append(res, conf.Reward...)
info.Weekaward[conf.Key] = true
@ -66,7 +66,7 @@ func (this *apiComp) Award(session comm.IUserSession, req *pb.DColorAwardReq) (e
if errdata, atno = this.module.DispenseAtno(session, res, true); errdata != nil {
return
}
if req.Atype == 0 {
if req.Atype == 1 {
info.Weektime = configure.Now().Unix()
awards = info.Weekaward
} else {

View File

@ -64,6 +64,8 @@ func (this *apiComp) Refuse(session comm.IUserSession, req *pb.GameInviteRefuseR
"invite": info.Invite,
})
session.SendMsg(string(this.module.GetType()), "refuse", &pb.GameInviteRefuseResp{IsSucc: true})
this.module.SendMsgToUser(string(this.module.GetType()), "qiecuonotify",
&pb.GameInviteQiecuonotifyPush{User: comm.GetUserBaseInfo(user), NotifyType: 3, Gtype: req.Gtype}, req.Uid)
return