上传全局表优化
This commit is contained in:
parent
281e8c3f17
commit
5d0185c458
@ -59,13 +59,8 @@ func (this *apiComp) Sign(session comm.IUserSession, req *pb.UserSignReq) (code
|
|||||||
this.module.DispenseRes(session, _data.Loopgift, true)
|
this.module.DispenseRes(session, _data.Loopgift, true)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
globalCnf := this.module.configure.GetGlobalAtnConf("unified_reward") // 获取重置消耗
|
|
||||||
if globalCnf == nil {
|
|
||||||
code = pb.ErrorCode_ConfigNoFound
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if bReward {
|
if bReward {
|
||||||
this.module.DispenseRes(session, globalCnf.Var, true) // 发放通用奖励
|
this.module.DispenseRes(session, this.module.configure.GetGlobalConf().UnifiedReward, true) // 发放通用奖励
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
session.SendMsg(string(this.module.GetType()), "sign", &pb.UserSignResp{
|
session.SendMsg(string(this.module.GetType()), "sign", &pb.UserSignResp{
|
||||||
|
Loading…
Reference in New Issue
Block a user