fix Authorization
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user