作者 yangfu

修改配置

[dev]
#Ali could
#AccessKeyID ="LTAI4FhiZ3UktC6N1u3H5GFC"
#AccessKeySecret ="UyspWwdni55CYQ02hUCint4qY2jNYO"
AccessKeyID ="LTAI4Fz1LUBW2fXp6QWaJHRS"
AccessKeySecret ="aLZXwK8pgrs10Ws03qcN7NsrSXFVsg"
#日志
log_level = "${LOG_LEVEL||debug}"
aliyun_logs_access ="${aliyun_logs_access||F:/log/app.log}"
#阿里云 https://media.goexample.live/
#阿里云基础配置
AccessKeyID ="LTAI4FhiZ3UktC6N1u3H5GFC"
AccessKeySecret ="UyspWwdni55CYQ02hUCint4qY2jNYO"
#AccessKeyID ="LTAI4Fz1LUBW2fXp6QWaJHRS"
#AccessKeySecret ="aLZXwK8pgrs10Ws03qcN7NsrSXFVsg"
#阿里云->绑定域名 cname = https://media.goexample.live/
cname ="https://media.fjmaimaimai.com/"
#友盟推送
... ...
... ... @@ -81,11 +81,12 @@ func CreateUploadImage(header *protocol.RequestHeader, request *aliyun.CreateUpl
}
request.Title = utils.GetFileName(header.AppProject, aliyun.FileImage, request.FileName)
rsp, err = aliyun.CreateUploadImage(client, request)
rsp.FileURL = rsp.ImageURL
rsp.FileName = request.FileName
if err != nil {
log.Error(err)
return
}
rsp.FileURL = rsp.ImageURL
rsp.FileName = request.FileName
return
}
... ...