问题修复: - 火山云API不支持S3协议URL (s3://...),需要HTTPS URL - 云上传服务返回S3 URI格式,需要转换为可访问的CDN URL 技术实现: - 添加convert_s3_to_cdn_url方法,将S3 URL转换为CDN URL - 支持s3://ap-northeast-2/modal-media-cache/格式转换为https://cdn.roasmax.cn/ - 支持通用s3://格式和amazonaws.com格式的URL转换 - 在文件上传后立即转换URL格式,确保API调用使用正确的HTTPS URL 修复的错误: - 400 Bad Request: unsupported protocol scheme 's3' - 错误原因: 使用了S3协议URL而非HTTPS URL - 解决方案: 自动转换S3 URL为可访问的CDN HTTPS URL URL转换示例: - s3://ap-northeast-2/modal-media-cache/upload/... -> https://cdn.roasmax.cn/upload/... - 确保火山云API能够正确访问图片和视频文件 |
||
|---|---|---|
| .. | ||
| desktop | ||