作者 yangfu

修改配置

[dev]
#Ali could
AccessKeyID ="LTAI4FhiZ3UktC6N1u3H5GFC"
AccessKeySecret ="UyspWwdni55CYQ02hUCint4qY2jNYO"
#AccessKeyID ="LTAI4FhiZ3UktC6N1u3H5GFC"
#AccessKeySecret ="UyspWwdni55CYQ02hUCint4qY2jNYO"
AccessKeyID ="LTAI4Fz1LUBW2fXp6QWaJHRS"
AccessKeySecret ="aLZXwK8pgrs10Ws03qcN7NsrSXFVsg"
#日志
log_level = "${LOG_LEVEL||debug}"
aliyun_logs_access ="${aliyun_logs_access||F:/log/app.log}"
#阿里云
cname ="https://media.goexample.live/"
#阿里云 https://media.goexample.live/
cname ="https://media.fjmaimaimai.com/"
... ...
... ... @@ -35,6 +35,10 @@ func CreateUploadVideo(header *protocol.RequestHeader, request *aliyun.CreateUpl
request.FileName = filePath
request.Title = filePath
rsp, err = aliyun.CreateUploadVideo(client, request)
if err != nil {
log.Error(err)
return
}
if up, err = aliyun.ParseUploadAddress(rsp.UploadAddress); err != nil {
log.Error(err)
return
... ...