上传代码
This commit is contained in:
parent
32d328121b
commit
c20b66c5cc
@ -70,7 +70,6 @@ func (this *apiComp) Roulette(session comm.IUserSession, req *pb.GuildGveRoulett
|
||||
if confs[index].Push == 1 { //推送通知
|
||||
go this.module.modelUnionroulette.roulettechangePush(req.Guildid, session.GetUserId(), user.Name, confs[index].Id, award)
|
||||
}
|
||||
|
||||
session.SendMsg(string(this.module.GetType()), "roulette", &pb.GuildGveRouletteResp{Cid: confs[index].Id, Award: award})
|
||||
return
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ func (this *ModelUnionroulette) roulettechangePush(unionid string, uid, uname st
|
||||
Award: award,
|
||||
}
|
||||
info.Roulette = append(info.Roulette, record)
|
||||
|
||||
this.updateUnionRoulette(info)
|
||||
this.module.SendMsgToUsers(string(this.module.GetType()), "roulettechange", &pb.GuildGveRouletteChangePush{
|
||||
Record: record,
|
||||
}, users...)
|
||||
|
@ -89,11 +89,12 @@ func (this *ModelMline) updateprogress(data *pb.DBMainline) {
|
||||
}
|
||||
chapteraward[conf.Chapterid].Stage++
|
||||
}
|
||||
if _, ok = exploreaward[conf.Chapterid]; !ok && conf.Episodetype != 8 {
|
||||
if conf.Episodetype != 8 {
|
||||
if _, ok = exploreaward[conf.Chapterid]; !ok {
|
||||
exploreaward[conf.Chapterid] = &pb.DBMainlineAward{}
|
||||
}
|
||||
exploreaward[conf.Chapterid].Stage++
|
||||
|
||||
}
|
||||
if _, ok = groupaward[conf.GroupId]; !ok {
|
||||
groupaward[conf.GroupId] = &pb.DBMainlineAward{}
|
||||
}
|
||||
|
@ -99,7 +99,14 @@ func (this *Mainline) BingoJumpLevel(session comm.IUserSession, level int32) (er
|
||||
err error
|
||||
)
|
||||
|
||||
this.configure.GetMainStageConfs()
|
||||
if confs, err = this.configure.GetMainStageConfs(); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ConfigNoFound,
|
||||
Title: pb.ErrorCode_ConfigNoFound.ToString(),
|
||||
Message: err.Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
info, err = this.modelMline.getMainlineData(session.GetUserId())
|
||||
if err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
|
Loading…
Reference in New Issue
Block a user