正在显示
2 个修改的文件
包含
10 行增加
和
4 行删除
1 | [dev] | 1 | [dev] |
2 | #Ali could | 2 | #Ali could |
3 | -AccessKeyID ="LTAI4FhiZ3UktC6N1u3H5GFC" | ||
4 | -AccessKeySecret ="UyspWwdni55CYQ02hUCint4qY2jNYO" | 3 | +#AccessKeyID ="LTAI4FhiZ3UktC6N1u3H5GFC" |
4 | +#AccessKeySecret ="UyspWwdni55CYQ02hUCint4qY2jNYO" | ||
5 | +AccessKeyID ="LTAI4Fz1LUBW2fXp6QWaJHRS" | ||
6 | +AccessKeySecret ="aLZXwK8pgrs10Ws03qcN7NsrSXFVsg" | ||
5 | 7 | ||
6 | #日志 | 8 | #日志 |
7 | log_level = "${LOG_LEVEL||debug}" | 9 | log_level = "${LOG_LEVEL||debug}" |
8 | aliyun_logs_access ="${aliyun_logs_access||F:/log/app.log}" | 10 | aliyun_logs_access ="${aliyun_logs_access||F:/log/app.log}" |
9 | 11 | ||
10 | -#阿里云 | ||
11 | -cname ="https://media.goexample.live/" | 12 | +#阿里云 https://media.goexample.live/ |
13 | +cname ="https://media.fjmaimaimai.com/" |
@@ -35,6 +35,10 @@ func CreateUploadVideo(header *protocol.RequestHeader, request *aliyun.CreateUpl | @@ -35,6 +35,10 @@ func CreateUploadVideo(header *protocol.RequestHeader, request *aliyun.CreateUpl | ||
35 | request.FileName = filePath | 35 | request.FileName = filePath |
36 | request.Title = filePath | 36 | request.Title = filePath |
37 | rsp, err = aliyun.CreateUploadVideo(client, request) | 37 | rsp, err = aliyun.CreateUploadVideo(client, request) |
38 | + if err != nil { | ||
39 | + log.Error(err) | ||
40 | + return | ||
41 | + } | ||
38 | if up, err = aliyun.ParseUploadAddress(rsp.UploadAddress); err != nil { | 42 | if up, err = aliyun.ParseUploadAddress(rsp.UploadAddress); err != nil { |
39 | log.Error(err) | 43 | log.Error(err) |
40 | return | 44 | return |
-
请 注册 或 登录 后发表评论