From 1cd930fa084fe31d2b86dfef7d7fcadda6d1ffda Mon Sep 17 00:00:00 2001 From: seaheart Date: Sat, 8 Jul 2023 18:55:53 +0800 Subject: [PATCH] change share preview api --- src/common/model/matter/Matter.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/common/model/matter/Matter.ts b/src/common/model/matter/Matter.ts index 21f2a8e..e428f06 100644 --- a/src/common/model/matter/Matter.ts +++ b/src/common/model/matter/Matter.ts @@ -610,9 +610,9 @@ export default class Matter extends BaseEntity { shareCode: string, shareRootUuid: string ): string { - return `${EnvUtil.currentHost()}/api/share/matter/download/${this.uuid}/${ - this.name - }?shareUuid=${shareUuid}&shareCode=${shareCode}&shareRootUuid=${shareRootUuid}`; + return `${EnvUtil.currentHost()}/api/share/matter/download?matterUuid=${ + this.uuid + }&shareUuid=${shareUuid}&shareCode=${shareCode}&shareRootUuid=${shareRootUuid}`; } getSharePreviewUrl( @@ -620,8 +620,8 @@ export default class Matter extends BaseEntity { shareCode: string, shareRootUuid: string ): string { - return `${EnvUtil.currentHost()}/api/share/matter/preview/${this.uuid}/${ - this.name - }?shareUuid=${shareUuid}&shareCode=${shareCode}&shareRootUuid=${shareRootUuid}`; + return `${EnvUtil.currentHost()}/api/share/matter/preview?matterUuid=${ + this.uuid + }&shareUuid=${shareUuid}&shareCode=${shareCode}&shareRootUuid=${shareRootUuid}`; } }