军团捐献,许愿池,装备,养成 注释

This commit is contained in:
mamengke01
2021-02-24 18:33:42 +08:00
parent 87d7bf6a8e
commit 88d5e26753
9 changed files with 152 additions and 73 deletions

View File

@@ -20,7 +20,11 @@ export class DonationHandler {
constructor(private app: Application) {
}
/**
* 捐献所的等级,捐献的次数,战报,捐献达到的基金,领取宝箱记录
* @param msg
* @param session
*/
async getDonation(msg: {}, session: BackendSession) {
const roleId: string = session.get('roleId');
const serverId: number = parseInt(session.get('serverId'));
@@ -32,7 +36,11 @@ export class DonationHandler {
let { donateFund, reports, donationLv } = await getDonation(code, serverId);
return resResult(STATUS.SUCCESS, { receiveBoxs, donateFund, reports, donateCnt:donateCnt||0, donationLv});
}
/**
* 捐献
* @param msg
* @param session
*/
async donate(msg: {id: number}, session: BackendSession) {
const { id } = msg;
const roleId: string = session.get('roleId');
@@ -64,7 +72,11 @@ export class DonationHandler {
return resResult(STATUS.SUCCESS, { donateFund, reports, donateCnt, goods });
}
/**
* 领取宝箱
* @param msg
* @param session
*/
async receiveBox(msg: {id: number}, session: BackendSession) {
const { id } = msg;
const roleId: string = session.get('roleId');