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
e9def1e1
Commit
e9def1e1
authored
Feb 14, 2019
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加转码模板组参数
parent
e9e40a82
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
AliyunApiController.java
...main/java/com/egolm/film/api/web/AliyunApiController.java
+3
-0
AliyunUtil.java
src/main/java/com/egolm/film/util/AliyunUtil.java
+1
-0
No files found.
src/main/java/com/egolm/film/api/web/AliyunApiController.java
View file @
e9def1e1
...
@@ -55,6 +55,7 @@ public class AliyunApiController {
...
@@ -55,6 +55,7 @@ public class AliyunApiController {
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"cateId"
,
dataType
=
"Long"
,
required
=
true
,
value
=
"分类ID"
,
defaultValue
=
"0"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"cateId"
,
dataType
=
"Long"
,
required
=
true
,
value
=
"分类ID"
,
defaultValue
=
"0"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"tags"
,
dataType
=
"String"
,
required
=
false
,
value
=
"视频标签,多个用逗号分隔"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"tags"
,
dataType
=
"String"
,
required
=
false
,
value
=
"视频标签,多个用逗号分隔"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"description"
,
dataType
=
"String"
,
required
=
false
,
value
=
"描述"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"description"
,
dataType
=
"String"
,
required
=
false
,
value
=
"描述"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"templateGroupId"
,
dataType
=
"String"
,
required
=
false
,
value
=
"转码模板组ID"
,
defaultValue
=
""
),
})
})
@RequestMapping
(
value
=
"/createUploadVideo"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/createUploadVideo"
,
method
=
RequestMethod
.
POST
)
public
Object
createUploadVideo
(
HttpServletRequest
request
)
{
public
Object
createUploadVideo
(
HttpServletRequest
request
)
{
...
@@ -63,6 +64,7 @@ public class AliyunApiController {
...
@@ -63,6 +64,7 @@ public class AliyunApiController {
String
cateId
=
request
.
getParameter
(
"cateId"
);
String
cateId
=
request
.
getParameter
(
"cateId"
);
String
tags
=
request
.
getParameter
(
"tags"
);
String
tags
=
request
.
getParameter
(
"tags"
);
String
description
=
request
.
getParameter
(
"description"
);
String
description
=
request
.
getParameter
(
"description"
);
String
templateGroupId
=
request
.
getParameter
(
"templateGroupId"
);
if
(!
StringUtil
.
isNotEmpty
(
fileName
,
title
))
{
if
(!
StringUtil
.
isNotEmpty
(
fileName
,
title
))
{
return
Rjx
.
jsonErr
().
setMessage
(
messages
.
get
(
"err.param_null"
));
return
Rjx
.
jsonErr
().
setMessage
(
messages
.
get
(
"err.param_null"
));
...
@@ -76,6 +78,7 @@ public class AliyunApiController {
...
@@ -76,6 +78,7 @@ public class AliyunApiController {
params
.
put
(
"cateId"
,
cateId
);
params
.
put
(
"cateId"
,
cateId
);
params
.
put
(
"tags"
,
tags
);
params
.
put
(
"tags"
,
tags
);
params
.
put
(
"description"
,
description
);
params
.
put
(
"description"
,
description
);
params
.
put
(
"templateGroupId"
,
templateGroupId
);
AliyunUtil
aliyunUtil
=
new
AliyunUtil
(
accessKeyId
,
accessKeySecret
);
AliyunUtil
aliyunUtil
=
new
AliyunUtil
(
accessKeyId
,
accessKeySecret
);
CreateUploadVideoResponse
response
=
aliyunUtil
.
createUploadVideo
(
params
);
CreateUploadVideoResponse
response
=
aliyunUtil
.
createUploadVideo
(
params
);
...
...
src/main/java/com/egolm/film/util/AliyunUtil.java
View file @
e9def1e1
...
@@ -61,6 +61,7 @@ public class AliyunUtil {
...
@@ -61,6 +61,7 @@ public class AliyunUtil {
request
.
setTags
(
params
.
get
(
"tags"
)+
""
);
request
.
setTags
(
params
.
get
(
"tags"
)+
""
);
// 可选,视频描述
// 可选,视频描述
request
.
setDescription
(
params
.
get
(
"description"
)+
""
);
request
.
setDescription
(
params
.
get
(
"description"
)+
""
);
request
.
setTemplateGroupId
(
params
.
get
(
"templateGroupId"
)+
""
);
response
=
aliyunClient
.
getAcsResponse
(
request
);
response
=
aliyunClient
.
getAcsResponse
(
request
);
}
catch
(
ServerException
e
)
{
}
catch
(
ServerException
e
)
{
System
.
out
.
println
(
"CreateUploadVideoRequest Server Exception:"
);
System
.
out
.
println
(
"CreateUploadVideoRequest Server Exception:"
);
...
...
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