lib/carrierwave/storage/aliyun.rb in carrierwave-aliyun-0.4.0 vs lib/carrierwave/storage/aliyun.rb in carrierwave-aliyun-0.4.1
- old
+ new
@@ -102,14 +102,11 @@
end
def oss_upload_client
return @oss_upload_client if defined?(@oss_upload_client)
- if @uploader.aliyun_internal
- host = "oss-#{@aliyun_area}-internal.aliyuncs.com"
- else
- host = "oss-#{@aliyun_area}.aliyuncs.com"
- end
+ # TODO: 实现根据 config.aliyun_internal 来使用内部 host 上传
+ host = "oss-#{@aliyun_area}.aliyuncs.com"
opts = {
host: host,
bucket: @aliyun_bucket
}