圣桃树活动 配置时间为天
This commit is contained in:
parent
1033d34b64
commit
ce72ae32bb
@ -36,7 +36,7 @@ func (this *apiComp) PeachReward(session comm.IUserSession, req *pb.HeroPeachRew
|
|||||||
}
|
}
|
||||||
if user := this.module.ModuleUser.GetUser(session.GetUserId()); user != nil {
|
if user := this.module.ModuleUser.GetUser(session.GetUserId()); user != nil {
|
||||||
if drawConf.Etime != -1 {
|
if drawConf.Etime != -1 {
|
||||||
if user.Ctime+int64(drawConf.Etime) < configure.Now().Unix() {
|
if user.Ctime+int64(drawConf.Etime*3600*24) < configure.Now().Unix() {
|
||||||
errdata = &pb.ErrorData{
|
errdata = &pb.ErrorData{
|
||||||
Code: pb.ErrorCode_HeroDrawOutTime,
|
Code: pb.ErrorCode_HeroDrawOutTime,
|
||||||
Message: pb.ErrorCode_HeroDrawOutTime.ToString(),
|
Message: pb.ErrorCode_HeroDrawOutTime.ToString(),
|
||||||
|
Loading…
Reference in New Issue
Block a user