🐞 fix(任务): 跨服添加好友问题

This commit is contained in:
luying
2022-12-09 18:12:27 +08:00
parent fb42aae569
commit 1d2a57597f
2 changed files with 4 additions and 4 deletions

View File

@@ -22,10 +22,10 @@ import { getGoldId } from '../role/rewardService';
import { GachaResultIndb } from '../../domain/activityField/gachaField';
import { ActivityPopUpShopRecModel } from '../../db/ActivityPopUpShopRec';
export async function checkTaskWithRoles(serverId: number, roleId: string, sid: string, taskType: TASK_TYPE, roles: RoleType[]) {
export async function checkTaskWithRoles(roleId: string, sid: string, taskType: TASK_TYPE, roles: RoleType[]) {
for (let role of roles) {
if (role) {
await checkTaskWithRole(serverId, role.roleId, role.roleId == roleId ? sid : null, taskType, role);
await checkTaskWithRole(role.serverId, role.roleId, role.roleId == roleId ? sid : null, taskType, role);
}
}
}