捐献等级
This commit is contained in:
@@ -28,8 +28,8 @@ export class DonationHandler {
|
|||||||
if (!userGuild)
|
if (!userGuild)
|
||||||
return resResult(STATUS.WRONG_PARMS);
|
return resResult(STATUS.WRONG_PARMS);
|
||||||
const { guildCode: code, donateCnt, receiveBoxs } = userGuild;
|
const { guildCode: code, donateCnt, receiveBoxs } = userGuild;
|
||||||
let { donateFund, reports } = await getDonation(code, serverId);
|
let { donateFund, reports, donationLv } = await getDonation(code, serverId);
|
||||||
return resResult(STATUS.SUCCESS, { receiveBoxs, donateFund, reports, donateCnt:donateCnt||0 });
|
return resResult(STATUS.SUCCESS, { receiveBoxs, donateFund, reports, donateCnt:donateCnt||0, donationLv});
|
||||||
}
|
}
|
||||||
|
|
||||||
async donate(msg: {id: number}, session: BackendSession) {
|
async donate(msg: {id: number}, session: BackendSession) {
|
||||||
|
|||||||
Reference in New Issue
Block a user