fix 战报未保存对手roleId
This commit is contained in:
@@ -584,7 +584,7 @@ export async function generPVPOppRecInfo(isSuccess: boolean, curOpp: OppPlayers,
|
||||
}
|
||||
}
|
||||
return {
|
||||
roleId: oppRole.roleId,
|
||||
roleId: robotIdComBack(oppRole.oppRoleId),
|
||||
roleName: oppRole.roleName,
|
||||
lv: oppRole.lv,
|
||||
sHid: oppRole.sHid,
|
||||
|
||||
@@ -120,7 +120,6 @@ export async function getMyRank(key: string, serverId: number, roleId: string) {
|
||||
export async function getFieldByRank(key: string, serverId: number, rank: number) {
|
||||
const client: Redis.RedisClient = pinus.app.get('redis');
|
||||
let myRank = await client.zrevrangeAsync(getKeyName(key, serverId), rank - 1, rank - 1);
|
||||
console.log('****', JSON.stringify(myRank))
|
||||
return myRank;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user