军团:捐献所等级第二天生效

This commit is contained in:
luying
2022-08-24 15:39:29 +08:00
parent 38ab926e6c
commit e50e412e75
3 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -19,9 +19,9 @@ export async function getDonation(code: string, guild: GuildType) {
return donation;
}
export async function donate(code: string, fund: number, donateId: number, roleName: string, guild: GuildType) {
export async function donate(code: string, fund: number, donateId: number, roleName: string, donateLv: number) {
let refTime = getZeroPoint();
let donation = await DonationModel.donate(code, refTime, fund, { id: donateId, roleName, time: refTime }, getDonateLv(guild));
let donation = await DonationModel.donate(code, refTime, fund, { id: donateId, roleName, time: refTime, fund }, donateLv);
return donation;
}