✨ feat(节日活动): 中秋活动
This commit is contained in:
@@ -9,10 +9,10 @@ import { RewardInter } from '../../../pubUtils/interface';
|
||||
|
||||
export default function (app: Application) {
|
||||
new HandlerService(app, {});
|
||||
return new EntertainHandler(app);
|
||||
return new QiXiHandler(app);
|
||||
}
|
||||
|
||||
export class EntertainHandler {
|
||||
export class QiXiHandler {
|
||||
constructor(private app: Application) {
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ export class EntertainHandler {
|
||||
* @description 获取火神祭祀活动数据
|
||||
* @param {{ activityId: number}} msg
|
||||
* @param {BackendSession} session
|
||||
* @memberof EntertainHandler
|
||||
* @memberof QiXiHandler
|
||||
*/
|
||||
async getData(msg: { activityId: number }, session: BackendSession) {
|
||||
const { activityId } = msg;
|
||||
@@ -38,7 +38,7 @@ export class EntertainHandler {
|
||||
* @description 召唤鹊桥游戏
|
||||
* @param {{ activityId: number }} msg
|
||||
* @param {BackendSession} session
|
||||
* @memberof EntertainHandler
|
||||
* @memberof QiXiHandler
|
||||
*/
|
||||
async gameStart(msg: { activityId: number, progress: number }, session: BackendSession) {
|
||||
const { activityId, progress } = msg;
|
||||
@@ -72,7 +72,7 @@ export class EntertainHandler {
|
||||
* @description 召唤鹊桥游戏
|
||||
* @param {{ activityId: number }} msg
|
||||
* @param {BackendSession} session
|
||||
* @memberof EntertainHandler
|
||||
* @memberof QiXiHandler
|
||||
*/
|
||||
async gameEnd(msg: { activityId: number, gameCode: string, progress: number, addProgress: number }, session: BackendSession) {
|
||||
const { activityId, gameCode, progress, addProgress } = msg;
|
||||
@@ -116,7 +116,7 @@ export class EntertainHandler {
|
||||
* @description 扫荡
|
||||
* @param {{ activityId: number }} msg
|
||||
* @param {BackendSession} session
|
||||
* @memberof EntertainHandler
|
||||
* @memberof QiXiHandler
|
||||
*/
|
||||
async gameSweep(msg: { activityId: number }, session: BackendSession) {
|
||||
const { activityId } = msg;
|
||||
@@ -154,7 +154,7 @@ export class EntertainHandler {
|
||||
* @description 购买次数
|
||||
* @param {{ activityId: number, id: number, count: number}} msg
|
||||
* @param {BackendSession} session
|
||||
* @memberof EntertainHandler
|
||||
* @memberof QiXiHandler
|
||||
*/
|
||||
async buyCnt(msg: { activityId: number, count: number }, session: BackendSession) {
|
||||
const { activityId, count } = msg;
|
||||
|
||||
Reference in New Issue
Block a user