feat(canvas): 媒体地址 - 图片和视频右键支持复制私有 OSS 签名地址

This commit is contained in:
ddCat committed 2026-07-23 20:10:58 +08:00
1 parent b832668813
commit fca7c95b64
6 files changed
+60 -2

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ func (s *Service) DirectResourceURL(userID string, id string) (string, error) {
return "", BadAuthRequest("资源尚未上传完成")
}
if resource.Provider == "local" {
return "", nil
return "", BadAuthRequest("当前资源未存储在 OSS")
}
setting, err := s.ossSettingForResource(userID, resource)
if err != nil {