✨ feat(战场): 放宽上传录像范围
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user