活动存入内存中
This commit is contained in:
@@ -4,6 +4,7 @@ import { ActivityNewHeroGachaModel, ActivityNewHeroGachaModelType } from '../../
|
||||
import { RoleModel } from '../../db/Role';
|
||||
import { ServerlistModel } from '../../db/Serverlist';
|
||||
import { NewHeroGachaData } from '../../domain/activityField/newHeroGachaField';
|
||||
import { getActivityById } from './activityService';
|
||||
|
||||
|
||||
/**
|
||||
@@ -38,7 +39,7 @@ export async function newHeroGachaActivity(serverId: number, roleId: string) {
|
||||
*
|
||||
*/
|
||||
export async function getPlayerNewHeroGachaData(activityId: number, serverId: number, roleId: string) {
|
||||
let activityData: ActivityModelType = await ActivityModel.findActivity(activityId);
|
||||
let activityData = await getActivityById(activityId);
|
||||
let playerRecord: ActivityNewHeroGachaModelType = await ActivityNewHeroGachaModel.findData(serverId, activityId, roleId);
|
||||
|
||||
let { createTime } = await RoleModel.findByRoleId(roleId);
|
||||
|
||||
Reference in New Issue
Block a user