🐞 fix(录像): 修复录像存储以及读取路径

This commit is contained in:
luying
2023-04-20 10:59:27 +08:00
parent cc909dd633
commit 66c7e272e2
7 changed files with 13 additions and 12 deletions

View File

@@ -361,7 +361,7 @@ export class LadderHandler {
return resResult(STATUS.SUCCESS, {
list: list.map(rec => {
const { roleId1, battleCode, hasRpl, remoteUrl } = rec;
const rplFileUrl = battleCode && hasRpl ? getRemoteRplFilePath(remoteUrl, roleId1, WAR_TYPE.LADDER, battleCode) : '';
const rplFileUrl = battleCode && hasRpl ? remoteUrl : '';
return { ...rec, rplFileUrl };
}),
rplPrefixUrl: getRemoteRplPrefix(pinus.app.get('env'))