新武将:activityId参数
This commit is contained in:
@@ -24,7 +24,7 @@ import { refreshGacha } from './gachaService';
|
||||
let createTime = await getRoleCreateTime(roleId);
|
||||
let serverTime = await getServerCreateTime(serverId);
|
||||
let playerData = new NewHeroGachaData(activityData, createTime, serverTime);
|
||||
let userGacha: UserGachaType = await UserGachaModel.findByRole(roleId, playerData.gachaId);
|
||||
let userGacha: UserGachaType = await UserGachaModel.findByRole(roleId, playerData.gachaId, activityId);
|
||||
let dicGacha = gameData.gacha.get(playerData.gachaId);
|
||||
userGacha = await refreshGacha(dicGacha, userGacha);
|
||||
playerData.setPlayerRecords(userGacha, dicGacha);
|
||||
|
||||
Reference in New Issue
Block a user