🐞 fix(后台): 礼包码参数校验

This commit is contained in:
luying
2023-06-30 13:54:30 +08:00
parent 2650df054e
commit 42625af339

View File

@@ -297,7 +297,7 @@ export class UpdateGiftCode {
}
if(!isTimestamp(this.beginTime) || !isTimestamp(this.endTime)) return false;
if(!isNumber(this.codeLen) || this.codeLen <= 0) return false;
if(this.type != 0 && this.type != 1) return false;
if(this.type != 0 && this.type != 1 && this.type != 2) return false;
return true;
}
}