Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
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
YZG
yzg-util
Commits
f7cfe50d
Commit
f7cfe50d
authored
Nov 16, 2021
by
yanxia54
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
异常信息优化
parent
f1f7d5ee
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
MediaCacheLocal.java
.../src/main/java/com/yanzuoguang/media/MediaCacheLocal.java
+1
-2
MediaFirst.java
...image/src/main/java/com/yanzuoguang/media/MediaFirst.java
+0
-3
No files found.
yzg-util-image/src/main/java/com/yanzuoguang/media/MediaCacheLocal.java
View file @
f7cfe50d
package
com
.
yanzuoguang
.
media
;
package
com
.
yanzuoguang
.
media
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
org.springframework.stereotype.Component
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -11,7 +10,7 @@ import java.util.Map;
...
@@ -11,7 +10,7 @@ import java.util.Map;
*
*
* @author 颜佐光
* @author 颜佐光
*/
*/
public
class
MediaCacheLocal
implements
MediaCache
{
public
class
MediaCacheLocal
implements
MediaCache
Base
{
private
Map
<
String
,
MapLock
>
mapLock
=
new
HashMap
<
String
,
MapLock
>();
private
Map
<
String
,
MapLock
>
mapLock
=
new
HashMap
<
String
,
MapLock
>();
...
...
yzg-util-image/src/main/java/com/yanzuoguang/media/MediaFirst.java
View file @
f7cfe50d
...
@@ -42,9 +42,6 @@ public class MediaFirst {
...
@@ -42,9 +42,6 @@ public class MediaFirst {
}
}
public
MediaResVo
start
(
MediaReqVo
req
)
{
public
MediaResVo
start
(
MediaReqVo
req
)
{
if
(
cache
==
null
)
{
throw
new
CodeException
(
"请通过程序编写视频缓存处理对象"
);
}
// 将临时文件移动到正式文件
// 将临时文件移动到正式文件
this
.
getCache
().
lockTempFile
(
req
,
new
Runnable
()
{
this
.
getCache
().
lockTempFile
(
req
,
new
Runnable
()
{
@Override
@Override
...
...
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