Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
member-api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
member-api
Commits
ffc0d07e
Commit
ffc0d07e
authored
Mar 08, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://key@gitlab.egolm.com/hanxu/siff-film-api.git
parents
a00db1a2
288720f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
AliyunApiController.java
...main/java/com/egolm/film/api/web/AliyunApiController.java
+1
-1
AliyunUtil.java
src/main/java/com/egolm/film/util/AliyunUtil.java
+4
-2
No files found.
src/main/java/com/egolm/film/api/web/AliyunApiController.java
View file @
ffc0d07e
...
...
@@ -143,7 +143,7 @@ public class AliyunApiController {
if
(!
StringUtil
.
isNotEmpty
(
videoId
))
{
return
Rjx
.
jsonErr
().
setMessage
(
messages
.
get
(
"err.param_null"
));
}
AliyunUtil
aliyunUtil
=
new
AliyunUtil
(
accessKeyId
,
accessKeySecret
);
try
{
GetVideoPlayAuthResponse
response
=
aliyunUtil
.
getVideoPlayAuth
(
videoId
);
...
...
src/main/java/com/egolm/film/util/AliyunUtil.java
View file @
ffc0d07e
...
...
@@ -21,8 +21,8 @@ import com.egolm.common.HttpsUtil;
import
com.egolm.film.config.XRException
;
public
class
AliyunUtil
{
private
String
accessKeyId
=
"
"
;
//"
LTAIOtHCCpDLXYp8";
private
String
accessKeySecret
=
"
"
;
//"
9XTHW7P9TTRvCsBHBSclOue2tdWOoa";
private
String
accessKeyId
=
"LTAIOtHCCpDLXYp8"
;
private
String
accessKeySecret
=
"9XTHW7P9TTRvCsBHBSclOue2tdWOoa"
;
private
final
DefaultAcsClient
aliyunClient
;
...
...
@@ -33,6 +33,8 @@ public class AliyunUtil {
public
AliyunUtil
(
String
accessKeyId
,
String
accessKeySecret
)
{
this
.
accessKeyId
=
accessKeyId
;
this
.
accessKeySecret
=
accessKeySecret
;
System
.
out
.
println
(
"accessKeyId----"
+
this
.
accessKeyId
);
System
.
out
.
println
(
"accessKeySecret----"
+
this
.
accessKeySecret
);
this
.
aliyunClient
=
new
DefaultAcsClient
(
DefaultProfile
.
getProfile
(
"cn-shanghai"
,
accessKeyId
,
accessKeySecret
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment