Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
ftp_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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李辅翼
ftp_proxy
Commits
e25a7fb4
Commit
e25a7fb4
authored
Oct 28, 2019
by
张付兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加日期文件夹
parent
64d29afc
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
5 deletions
+11
-5
src/main/java/com/hikcreate/ftp/proxy/modules/ftp/api/FtpProxyWebApi.java
+1
-1
src/main/java/com/hikcreate/ftp/proxy/modules/ftp/param/request/UploadIllegalReportReq.java
+6
-0
src/main/resources/application-dev.yml
+2
-2
src/main/resources/application-progy.yml
+2
-2
No files found.
src/main/java/com/hikcreate/ftp/proxy/modules/ftp/api/FtpProxyWebApi.java
View file @
e25a7fb4
...
@@ -133,7 +133,7 @@ public class FtpProxyWebApi {
...
@@ -133,7 +133,7 @@ public class FtpProxyWebApi {
BASE64Decoder
decoder
=
new
BASE64Decoder
();
BASE64Decoder
decoder
=
new
BASE64Decoder
();
byte
[]
bytes
=
decoder
.
decodeBuffer
(
request
.
getFileBase64Content
());
byte
[]
bytes
=
decoder
.
decodeBuffer
(
request
.
getFileBase64Content
());
InputStream
in
=
new
ByteArrayInputStream
(
bytes
);
InputStream
in
=
new
ByteArrayInputStream
(
bytes
);
ftpUtil
.
uploadFile
(
in
,
ftpConfigBean
.
getIllegalReportDir
(),
request
.
getFileName
());
ftpUtil
.
uploadFile
(
in
,
ftpConfigBean
.
getIllegalReportDir
()
+
request
.
getDate
()
,
request
.
getFileName
());
return
ResponseGenerator
.
success
();
return
ResponseGenerator
.
success
();
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
throw
new
BusinessException
(
e
);
throw
new
BusinessException
(
e
);
...
...
src/main/java/com/hikcreate/ftp/proxy/modules/ftp/param/request/UploadIllegalReportReq.java
View file @
e25a7fb4
...
@@ -5,6 +5,8 @@ import lombok.Data;
...
@@ -5,6 +5,8 @@ import lombok.Data;
import
lombok.NoArgsConstructor
;
import
lombok.NoArgsConstructor
;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
import
javax.validation.constraints.NotNull
;
/**
/**
* @author zhangfubing
* @author zhangfubing
* @create 2019/10/26 16:01
* @create 2019/10/26 16:01
...
@@ -15,6 +17,10 @@ import lombok.experimental.Accessors;
...
@@ -15,6 +17,10 @@ import lombok.experimental.Accessors;
@Accessors
(
chain
=
true
)
@Accessors
(
chain
=
true
)
public
class
UploadIllegalReportReq
{
public
class
UploadIllegalReportReq
{
@NotNull
private
String
date
;
// 日期文件夹
@NotNull
private
String
fileName
;
// 文件名
private
String
fileName
;
// 文件名
@NotNull
private
String
fileBase64Content
;
// 文件base64内容
private
String
fileBase64Content
;
// 文件base64内容
}
}
src/main/resources/application-dev.yml
View file @
e25a7fb4
...
@@ -4,4 +4,4 @@ biz:
...
@@ -4,4 +4,4 @@ biz:
port
:
21
port
:
21
username
:
yfbftp
username
:
yfbftp
password
:
1234qwer
password
:
1234qwer
illegalReportDir
:
hik_pic/illegal_report
illegalReportDir
:
hik_pic/illegal_report/
\ No newline at end of file
\ No newline at end of file
src/main/resources/application-progy.yml
View file @
e25a7fb4
...
@@ -4,4 +4,4 @@ biz:
...
@@ -4,4 +4,4 @@ biz:
port
:
21
port
:
21
username
:
jsc
username
:
jsc
password
:
jsc
password
:
jsc
illegalReportDir
:
hik_pic/illegal_report
illegalReportDir
:
hik_pic/illegal_report/
\ No newline at end of file
\ No newline at end of file
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