兑换码时间控制

back_recharge
lvxinran 2021-01-31 13:55:57 +08:00
parent f72e134f0f
commit 5d9812cff2
1 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,9 @@ public class ExchangeCdkHandler extends BaseHandler<PlayerInfoProto.ExchangeCdkR
if (scdkInfo == null) {
throw new ErrorCodeException(ErrorCode.CDK_FAIL);
}
if(TimeUtils.now()<scdkInfo.getStartTime()||TimeUtils.now()>scdkInfo.getEndTime()){
throw new ErrorCodeException(ErrorCode.CDK_FAIL);
}
//pid
if(scdkInfo.getPid()!=-2&&user.getPlayerInfoManager().getPid()!=scdkInfo.getPid()){