小游戏奖励调整
This commit is contained in:
parent
08c6070abc
commit
cc550d9da5
@ -26,7 +26,7 @@ func (this *apiComp) PuzzleAward(session comm.IUserSession, req *pb.UserPuzzleAw
|
||||
code = pb.ErrorCode_ReqParameterError
|
||||
return
|
||||
}
|
||||
_data := this.module.configure.GetSignConf(sign.Day, sign.Group)
|
||||
_data := this.module.configure.GetSignConf(req.Index, sign.Group)
|
||||
if _data != nil { // 发奖
|
||||
if code = this.module.DispenseRes(session, _data.Gamegift, true); code != pb.ErrorCode_Success {
|
||||
return
|
||||
|
@ -43,6 +43,7 @@ func (this *configureComp) GetSignConf(day, group int32) *cfg.GameSignData {
|
||||
if v, ok := this._sign[group<<8+day]; ok {
|
||||
return v
|
||||
}
|
||||
log.Errorf("get GetSignConf conf err day:%d,group:%d", day, group)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user