diff --git a/src/controllers/cec.controller.ts b/src/controllers/cec.controller.ts index 1821494..9863c8e 100644 --- a/src/controllers/cec.controller.ts +++ b/src/controllers/cec.controller.ts @@ -72,7 +72,8 @@ const queryCECClaimStatus = async (address: string) => { if (CEC_CLAIM_STAGE === 0) { available += (currentTotal * BigInt(val.rate)) / 100n } else { - if (bindRecord && !bindRecord.invalid) { + // 预充值, 且记录有效, 且没有跳过绑定检查 + if (bindRecord && !bindRecord.invalid && !record.skipBind) { claimed += (currentTotal * BigInt(val.rate)) / 100n } else if (val.status === ClaimStatusEnum.NORMAL){ available += (currentTotal * BigInt(val.rate)) / 100n diff --git a/src/models/CECRecordTotal.ts b/src/models/CECRecordTotal.ts index 9a4aa48..db66266 100644 --- a/src/models/CECRecordTotal.ts +++ b/src/models/CECRecordTotal.ts @@ -57,13 +57,14 @@ export class CECRecordTotalClass extends BaseModule { * p2a: 2, 3 * game test parse 1: 4 * Loyalty Points Rewards: 5 - * Badge staking rewards: 6, 7 - * Gacha Journey: 8, 9 - * Rase of Gacha: 10, 11 - * game season rank: 12, 13 - * hash rate rewards: 14, 15 - * old game event: 16, 17 - * p2e season 2: 18 + * Badge staking rewards: 6, 7, 9, 11, 13, 15, 17, 20, 21, 22, 23, 24, 25 + * Gacha Journey: 8, 7, 9, 11, 13, 15, 17, 20, 21, 22, 23, 24, 25 + * Rase of Gacha: 10, 7, 9, 11, 13, 15, 17, 20, 21, 22, 23, 24, 25 + * game season rank: 12, 7, 9, 11, 13, 15, 17, 20, 21, 22, 23, 24, 25 + * hash rate rewards: 14, 7, 9, 11, 13, 15, 17, 20, 21, 22, 23, 24, 25 + * old game event: 16, 7, 9, 11, 13, 15, 17, 20, 21, 22, 23, 24, 25 + * discord ticket: 26, 7, 9, 11, 13, 15, 17, 20, 21, 22, 23, 24, 25 + * p2e season 2(Contribution Clash): 18 * founder's tag holder: 19 */ @prop({ type: () => ClaimStatus, _id: false }) @@ -77,6 +78,14 @@ export class CECRecordTotalClass extends BaseModule { @prop() public firstRate: number + + /** + * 是否跳过预充值检查 + * 1: 跳过 + * 0: 不跳过 + */ + @prop() + public skipBind: number @prop({ enum: CECStatusEnum, default: CECStatusEnum.NORMAL }) public status: CECStatusEnum