feat(战场): 放宽上传录像范围

This commit is contained in:
luying
2023-06-27 09:56:50 +08:00
parent 9e98d882a0
commit 2550178c6b
2 changed files with 5 additions and 1 deletions

View File

@@ -263,7 +263,7 @@ export default class GameController extends Controller {
if (!battleRec) return ctx.body = ctx.service.utils.resResult(STATUS.BATTLE_NOT_FOUND);
roleId = battleRec.roleId;
warType = battleRec.warType;
if (warType !== WAR_TYPE.PVP && warType !== WAR_TYPE.LADDER && warType !== WAR_TYPE.GVG_VESTIGE) return ctx.body = ctx.service.utils.resResult(STATUS.BATTLE_RPL_NOT_SUPPORT);
// if (warType !== WAR_TYPE.PVP && warType !== WAR_TYPE.LADDER && warType !== WAR_TYPE.GVG_VESTIGE) return ctx.body = ctx.service.utils.resResult(STATUS.BATTLE_RPL_NOT_SUPPORT);
}
writePath = getLocalRplUrl(roleId, warType, battleCode);
@@ -293,6 +293,8 @@ export default class GameController extends Controller {
updateDBRes = await GVGVestigeRecModel.updateRplStatus(battleCode, true, remoteUrl);
} else if (warType == WAR_TYPE.GVG_BATTLE) {
updateDBRes = await GVGBattleRecModel.updateRplStatus(battleCode, true, remoteUrl);
} else {
updateDBRes = await BattleRecordModel.updateBattleRecordByCode(battleCode, { $set: { remoteUrl }});
}
if (!updateDBRes) return ctx.body = ctx.service.utils.resResult(STATUS.BATTLE_RPL_UPDATE_ERR);
} else {