Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform
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
周健威
rs-cloud-platform
Commits
841c7096
Commit
841c7096
authored
Jan 13, 2021
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
3d728d5a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
UploadService.java
...m/upyuns/platform/rs/universal/service/UploadService.java
+3
-0
No files found.
rs-universal/rs-universal-server/src/main/java/com/upyuns/platform/rs/universal/service/UploadService.java
View file @
841c7096
...
...
@@ -2,6 +2,7 @@ package com.upyuns.platform.rs.universal.service;
import
cn.hutool.core.img.ImgUtil
;
import
cn.hutool.core.io.FileUtil
;
import
com.github.wxiaoqi.security.common.util.process.SystemConfig
;
import
com.upyuns.platform.rs.universal.constant.RedisKey
;
import
com.upyuns.platform.rs.universal.controller.UploadController
;
...
...
@@ -104,6 +105,8 @@ public class UploadService {
//将文件写入指定位置
//ImgUtil.write(newImage2, new File(filePath));
//创建文件夹
FileUtil
.
mkdir
(
dirPathToday
);
ImageWatermarkUtil
.
ImageByText
(
dto
.
getContext
(),
newImage
,
filePath
,
dto
.
getDegree
(),
font
);
//将文件写入指定位置
...
...
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