兑换码时间控制
parent
f72e134f0f
commit
5d9812cff2
|
@ -66,6 +66,9 @@ public class ExchangeCdkHandler extends BaseHandler<PlayerInfoProto.ExchangeCdkR
|
||||||
if (scdkInfo == null) {
|
if (scdkInfo == null) {
|
||||||
throw new ErrorCodeException(ErrorCode.CDK_FAIL);
|
throw new ErrorCodeException(ErrorCode.CDK_FAIL);
|
||||||
}
|
}
|
||||||
|
if(TimeUtils.now()<scdkInfo.getStartTime()||TimeUtils.now()>scdkInfo.getEndTime()){
|
||||||
|
throw new ErrorCodeException(ErrorCode.CDK_FAIL);
|
||||||
|
}
|
||||||
|
|
||||||
//pid
|
//pid
|
||||||
if(scdkInfo.getPid()!=-2&&user.getPlayerInfoManager().getPid()!=scdkInfo.getPid()){
|
if(scdkInfo.getPid()!=-2&&user.getPlayerInfoManager().getPid()!=scdkInfo.getPid()){
|
||||||
|
|
Loading…
Reference in New Issue