fix Authorization

This commit is contained in:
2025-11-11 17:47:08 +08:00
parent 64c0a10193
commit c40be9daf8
10 changed files with 326 additions and 29 deletions

View File

@@ -38,13 +38,12 @@ func (l *DownloadAuthorizationDocumentLogic) DownloadAuthorizationDocument(req *
return nil, errors.New("授权书不可用")
}
// 3. 构建完整文件URL
fullFileURL := l.svcCtx.AuthorizationService.GetFullFileURL(authDoc.FileUrl)
// 3. 构建响应
filePath := l.svcCtx.AuthorizationService.ResolveFilePath(authDoc.FilePath, authDoc.FileUrl)
// 4. 构建响应
resp = &types.DownloadAuthorizationDocumentResp{
FileName: authDoc.FileName,
FileUrl: fullFileURL,
FilePath: filePath,
}
return resp, nil