捐献等级

This commit is contained in:
mamengke01
2021-02-03 14:30:34 +08:00
parent a2284918d9
commit 0046dc2afa

View File

@@ -28,8 +28,8 @@ export class DonationHandler {
if (!userGuild)
return resResult(STATUS.WRONG_PARMS);
const { guildCode: code, donateCnt, receiveBoxs } = userGuild;
let { donateFund, reports } = await getDonation(code, serverId);
return resResult(STATUS.SUCCESS, { receiveBoxs, donateFund, reports, donateCnt:donateCnt||0 });
let { donateFund, reports, donationLv } = await getDonation(code, serverId);
return resResult(STATUS.SUCCESS, { receiveBoxs, donateFund, reports, donateCnt:donateCnt||0, donationLv});
}
async donate(msg: {id: number}, session: BackendSession) {