feat: product number
This commit is contained in:
@@ -101,7 +101,7 @@ func (l *PolicyLogic) Policy(in *chore.PolicyReq) (*chore.Response, error) {
|
||||
region = "oss-cn-hangzhou"
|
||||
}
|
||||
if endpoint == utils.StringEmpty {
|
||||
endpoint = "https://lone-images.oss-accelerate.aliyuncs.com"
|
||||
endpoint = "https://oss-accelerate.aliyuncs.com"
|
||||
}
|
||||
if host == utils.StringEmpty {
|
||||
host = "https://images.ailuowan.com"
|
||||
|
||||
@@ -22,7 +22,9 @@
|
||||
roleSessionName = "oss-upload"
|
||||
region = "oss-cn-hangzhou"
|
||||
bucketName = "lone-images"
|
||||
endpoint = "https://lone-images.oss-accelerate.aliyuncs.com"
|
||||
# SDK 会拼成 {bucket}.{endpoint},这里不要再带 bucket 名
|
||||
# 错误示例: lone-images.oss-accelerate... → 实际请求 lone-images.lone-images.oss-accelerate...
|
||||
endpoint = "https://oss-accelerate.aliyuncs.com"
|
||||
host = "https://images.ailuowan.com"
|
||||
dir = "upload/"
|
||||
expireSeconds = 3600
|
||||
|
||||
Reference in New Issue
Block a user