🐞 fix(任务): 跨服添加好友问题
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user