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