修复猜颜色代码
This commit is contained in:
parent
2d06b7fba1
commit
d21a84e35b
@ -48,7 +48,7 @@ func (this *apiComp) Award(session comm.IUserSession, req *pb.DColorAwardReq) (e
|
|||||||
|
|
||||||
for _, conf := range confs {
|
for _, conf := range confs {
|
||||||
if req.Atype == conf.Type {
|
if req.Atype == conf.Type {
|
||||||
if req.Atype == 0 {
|
if req.Atype == 1 {
|
||||||
if _, ok = info.Weekaward[conf.Key]; !ok && info.Integral >= conf.Condition {
|
if _, ok = info.Weekaward[conf.Key]; !ok && info.Integral >= conf.Condition {
|
||||||
res = append(res, conf.Reward...)
|
res = append(res, conf.Reward...)
|
||||||
info.Weekaward[conf.Key] = true
|
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 {
|
if errdata, atno = this.module.DispenseAtno(session, res, true); errdata != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if req.Atype == 0 {
|
if req.Atype == 1 {
|
||||||
info.Weektime = configure.Now().Unix()
|
info.Weektime = configure.Now().Unix()
|
||||||
awards = info.Weekaward
|
awards = info.Weekaward
|
||||||
} else {
|
} else {
|
||||||
|
@ -64,6 +64,8 @@ func (this *apiComp) Refuse(session comm.IUserSession, req *pb.GameInviteRefuseR
|
|||||||
"invite": info.Invite,
|
"invite": info.Invite,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
session.SendMsg(string(this.module.GetType()), "refuse", &pb.GameInviteRefuseResp{IsSucc: true})
|
||||||
|
|
||||||
this.module.SendMsgToUser(string(this.module.GetType()), "qiecuonotify",
|
this.module.SendMsgToUser(string(this.module.GetType()), "qiecuonotify",
|
||||||
&pb.GameInviteQiecuonotifyPush{User: comm.GetUserBaseInfo(user), NotifyType: 3, Gtype: req.Gtype}, req.Uid)
|
&pb.GameInviteQiecuonotifyPush{User: comm.GetUserBaseInfo(user), NotifyType: 3, Gtype: req.Gtype}, req.Uid)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user