🐞 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

@@ -396,7 +396,7 @@ export class GVGProduceHandler {
let result: (GVGVestigeRecUpdate & {rplFileUrl: string})[] = [];
for(let rec of list) {
const { attackRoleId, battleCode, hasRpl, remoteUrl } = rec;
const rplFileUrl = battleCode && hasRpl ? getRemoteRplFilePath(remoteUrl, attackRoleId, WAR_TYPE.GVG_VESTIGE, battleCode) : '';
const rplFileUrl = battleCode && hasRpl ? remoteUrl : '';
const obj = getVestigeRecStatus(rec);
if(obj.status == VESTIGE_STATUS.COMPLETE) result.push({ ...rec, endTime: obj.time, rplFileUrl });
}