Commit 00a51182 authored by liudong1993's avatar liudong1993

阿里云处理

parent 1a56ea6d
...@@ -28,6 +28,10 @@ namespace COSSnippet ...@@ -28,6 +28,10 @@ namespace COSSnippet
accessKeySecret = Config.GetAppSetting("Ali_OSS_SECRETKEY"); accessKeySecret = Config.GetAppSetting("Ali_OSS_SECRETKEY");
bucketName = Config.GetAppSetting("Ali_OSS_BUCKET"); bucketName = Config.GetAppSetting("Ali_OSS_BUCKET");
} }
if (!endpoint.Contains(".aliyuncs.com"))
{
endpoint += ".aliyuncs.com";//后台需要加上这个,前端的又不需要
}
} }
/// 上传对象 /// 上传对象
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment