Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
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
徐少华
midjourney-proxy
Commits
280b4007
Commit
280b4007
authored
Oct 18, 2019
by
裴大威
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-bak' into 'master'
feat C1001801 See merge request rays/pcloud-common-parent!63
parents
92cc68b9
538fe718
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
18 deletions
+25
-18
ConvertQueueDto.java
...main/java/com/pcloud/common/core/dto/ConvertQueueDto.java
+4
-3
AudioDTO.java
...ain/java/com/pcloud/common/core/dto/dubbing/AudioDTO.java
+7
-6
OssMediaInfoDTO.java
.../src/main/java/com/pcloud/common/dto/OssMediaInfoDTO.java
+5
-3
UploadResultInfo.java
.../main/java/com/pcloud/common/entity/UploadResultInfo.java
+5
-3
OssUtils.java
...rc/main/java/com/pcloud/common/utils/aliyun/OssUtils.java
+4
-3
No files found.
pcloud-common-core/src/main/java/com/pcloud/common/core/dto/ConvertQueueDto.java
View file @
280b4007
...
@@ -6,6 +6,7 @@ package com.pcloud.common.core.dto;
...
@@ -6,6 +6,7 @@ package com.pcloud.common.core.dto;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
/**
* @描述:
* @描述:
...
@@ -89,7 +90,7 @@ public class ConvertQueueDto implements Serializable {
...
@@ -89,7 +90,7 @@ public class ConvertQueueDto implements Serializable {
/**
/**
* 视频时长
* 视频时长
*/
*/
private
Integer
duration
;
private
BigDecimal
duration
;
/**
/**
* 视频m3u8地址
* 视频m3u8地址
...
@@ -120,11 +121,11 @@ public class ConvertQueueDto implements Serializable {
...
@@ -120,11 +121,11 @@ public class ConvertQueueDto implements Serializable {
this
.
m3u8Url
=
m3u8Url
;
this
.
m3u8Url
=
m3u8Url
;
}
}
public
Integer
getDuration
()
{
public
BigDecimal
getDuration
()
{
return
duration
;
return
duration
;
}
}
public
void
setDuration
(
Integer
duration
)
{
public
void
setDuration
(
BigDecimal
duration
)
{
this
.
duration
=
duration
;
this
.
duration
=
duration
;
}
}
...
...
pcloud-common-core/src/main/java/com/pcloud/common/core/dto/dubbing/AudioDTO.java
View file @
280b4007
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
package
com
.
pcloud
.
common
.
core
.
dto
.
dubbing
;
package
com
.
pcloud
.
common
.
core
.
dto
.
dubbing
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
...
@@ -27,7 +28,7 @@ public class AudioDTO implements Serializable {
...
@@ -27,7 +28,7 @@ public class AudioDTO implements Serializable {
/**
/**
* 时长
* 时长
*/
*/
private
int
duration
;
private
BigDecimal
duration
;
/**
/**
* 文件地址
* 文件地址
...
@@ -42,7 +43,7 @@ public class AudioDTO implements Serializable {
...
@@ -42,7 +43,7 @@ public class AudioDTO implements Serializable {
/**
/**
* 语音文件插入时间点
* 语音文件插入时间点
*/
*/
private
int
start
;
private
BigDecimal
start
;
/**
/**
* id
* id
...
@@ -73,11 +74,11 @@ public class AudioDTO implements Serializable {
...
@@ -73,11 +74,11 @@ public class AudioDTO implements Serializable {
this
.
fileName
=
fileName
;
this
.
fileName
=
fileName
;
}
}
public
int
getDuration
()
{
public
BigDecimal
getDuration
()
{
return
duration
;
return
duration
;
}
}
public
void
setDuration
(
int
duration
)
{
public
void
setDuration
(
BigDecimal
duration
)
{
this
.
duration
=
duration
;
this
.
duration
=
duration
;
}
}
...
@@ -89,11 +90,11 @@ public class AudioDTO implements Serializable {
...
@@ -89,11 +90,11 @@ public class AudioDTO implements Serializable {
this
.
fileUrl
=
fileUrl
;
this
.
fileUrl
=
fileUrl
;
}
}
public
int
getStart
()
{
public
BigDecimal
getStart
()
{
return
start
;
return
start
;
}
}
public
void
setStart
(
int
start
)
{
public
void
setStart
(
BigDecimal
start
)
{
this
.
start
=
start
;
this
.
start
=
start
;
}
}
...
...
pcloud-common/src/main/java/com/pcloud/common/dto/OssMediaInfoDTO.java
View file @
280b4007
package
com
.
pcloud
.
common
.
dto
;
package
com
.
pcloud
.
common
.
dto
;
import
java.math.BigDecimal
;
/**
/**
*
*
* @author:songx
* @author:songx
...
@@ -30,7 +32,7 @@ public class OssMediaInfoDTO extends BaseDto {
...
@@ -30,7 +32,7 @@ public class OssMediaInfoDTO extends BaseDto {
/**
/**
* 时长
* 时长
*/
*/
private
Integer
duration
;
private
BigDecimal
duration
;
/**
/**
* 文件大小
* 文件大小
...
@@ -61,11 +63,11 @@ public class OssMediaInfoDTO extends BaseDto {
...
@@ -61,11 +63,11 @@ public class OssMediaInfoDTO extends BaseDto {
this
.
obejctKey
=
obejctKey
;
this
.
obejctKey
=
obejctKey
;
}
}
public
Integer
getDuration
()
{
public
BigDecimal
getDuration
()
{
return
duration
;
return
duration
;
}
}
public
void
setDuration
(
Integer
duration
)
{
public
void
setDuration
(
BigDecimal
duration
)
{
this
.
duration
=
duration
;
this
.
duration
=
duration
;
}
}
...
...
pcloud-common/src/main/java/com/pcloud/common/entity/UploadResultInfo.java
View file @
280b4007
...
@@ -9,6 +9,8 @@ package com.pcloud.common.entity;
...
@@ -9,6 +9,8 @@ package com.pcloud.common.entity;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
java.math.BigDecimal
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
/**
/**
...
@@ -92,7 +94,7 @@ public class UploadResultInfo extends BaseEntity {
...
@@ -92,7 +94,7 @@ public class UploadResultInfo extends BaseEntity {
/**
/**
* 持续时长
* 持续时长
*/
*/
private
Integer
duration
;
private
BigDecimal
duration
;
/**
/**
* 封面图
* 封面图
...
@@ -189,11 +191,11 @@ public class UploadResultInfo extends BaseEntity {
...
@@ -189,11 +191,11 @@ public class UploadResultInfo extends BaseEntity {
this
.
pilotUrl
=
pilotUrl
;
this
.
pilotUrl
=
pilotUrl
;
}
}
public
Integer
getDuration
()
{
public
BigDecimal
getDuration
()
{
return
duration
;
return
duration
;
}
}
public
void
setDuration
(
Integer
duration
)
{
public
void
setDuration
(
BigDecimal
duration
)
{
this
.
duration
=
duration
;
this
.
duration
=
duration
;
}
}
...
...
pcloud-common/src/main/java/com/pcloud/common/utils/aliyun/OssUtils.java
View file @
280b4007
...
@@ -5,6 +5,7 @@ import java.io.ByteArrayOutputStream;
...
@@ -5,6 +5,7 @@ import java.io.ByteArrayOutputStream;
import
java.io.File
;
import
java.io.File
;
import
java.io.InputStream
;
import
java.io.InputStream
;
import
java.io.UnsupportedEncodingException
;
import
java.io.UnsupportedEncodingException
;
import
java.math.BigDecimal
;
import
java.net.URLDecoder
;
import
java.net.URLDecoder
;
import
java.net.URLEncoder
;
import
java.net.URLEncoder
;
import
java.util.List
;
import
java.util.List
;
...
@@ -1050,8 +1051,7 @@ public class OssUtils {
...
@@ -1050,8 +1051,7 @@ public class OssUtils {
ossMediaInfoDTO
.
setLocation
(
AliyunConstant
.
getOssRegion
(
bucketName
));
ossMediaInfoDTO
.
setLocation
(
AliyunConstant
.
getOssRegion
(
bucketName
));
ossMediaInfoDTO
.
setObejctKey
(
objectKey
);
ossMediaInfoDTO
.
setObejctKey
(
objectKey
);
ossMediaInfoDTO
.
setSize
(
StringUtil
.
isEmpty
(
format
.
getSize
())
?
0L
:
Long
.
parseLong
(
format
.
getSize
()));
ossMediaInfoDTO
.
setSize
(
StringUtil
.
isEmpty
(
format
.
getSize
())
?
0L
:
Long
.
parseLong
(
format
.
getSize
()));
ossMediaInfoDTO
.
setDuration
(
ossMediaInfoDTO
.
setDuration
(
StringUtil
.
isEmpty
(
format
.
getDuration
())
?
BigDecimal
.
ZERO
:
new
BigDecimal
(
format
.
getDuration
()));
StringUtil
.
isEmpty
(
format
.
getDuration
())
?
0
:
new
Double
(
format
.
getDuration
()).
intValue
());
LOGGER
.
info
(
"【aliOSS】获取媒体信息,仅限经过转码的音视频文件,<END>.[ossMediaInfoDTO]="
+
ossMediaInfoDTO
);
LOGGER
.
info
(
"【aliOSS】获取媒体信息,仅限经过转码的音视频文件,<END>.[ossMediaInfoDTO]="
+
ossMediaInfoDTO
);
return
ossMediaInfoDTO
;
return
ossMediaInfoDTO
;
}
}
...
@@ -1168,7 +1168,8 @@ public class OssUtils {
...
@@ -1168,7 +1168,8 @@ public class OssUtils {
uploadResultInfo
.
setFlag
(
true
);
uploadResultInfo
.
setFlag
(
true
);
uploadResultInfo
.
setFinish
(
true
);
uploadResultInfo
.
setFinish
(
true
);
if
(!
StringUtil
.
isEmpty
(
duration
))
{
if
(!
StringUtil
.
isEmpty
(
duration
))
{
uploadResultInfo
.
setDuration
(
new
Double
(
duration
).
intValue
());
// 20190930 韩双力保留四位
uploadResultInfo
.
setDuration
(
new
BigDecimal
(
duration
));
}
}
return
uploadResultInfo
;
return
uploadResultInfo
;
}
}
...
...
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