🐞 fix(后台): 礼包码参数校验
This commit is contained in:
@@ -297,7 +297,7 @@ export class UpdateGiftCode {
|
|||||||
}
|
}
|
||||||
if(!isTimestamp(this.beginTime) || !isTimestamp(this.endTime)) return false;
|
if(!isTimestamp(this.beginTime) || !isTimestamp(this.endTime)) return false;
|
||||||
if(!isNumber(this.codeLen) || this.codeLen <= 0) 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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user