Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jfV5portal
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
管理员
jfV5portal
Commits
c23a5070
Commit
c23a5070
authored
Aug 09, 2018
by
周添尉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改下载
parent
524708dd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
3 deletions
+30
-3
actAction.java
src_jwapp/com/jw/app/store/action/actAction.java
+9
-1
actAction.java
src_jwapp/com/jw/app/store/action/personal/actAction.java
+10
-1
actAction.java
src_system/com/gaowj/uploadfile/actAction.java
+11
-1
No files found.
src_jwapp/com/jw/app/store/action/actAction.java
View file @
c23a5070
...
...
@@ -6,6 +6,7 @@ import java.io.File;
import
java.io.FileNotFoundException
;
import
java.io.FileOutputStream
;
import
java.io.IOException
;
import
java.io.UnsupportedEncodingException
;
import
java.sql.Blob
;
import
java.sql.SQLException
;
import
java.text.SimpleDateFormat
;
...
...
@@ -458,10 +459,17 @@ public class actAction extends BasicAction {
}
else
{
ret_download
=
super
.
download
();
}
String
filename1
=
RequestUtils
.
getString
(
request
,
"uploadold"
);
try
{
filename1
=
new
String
(
filename1
.
getBytes
(
"ISO-8859-1"
),
"UTF-8"
);
}
catch
(
UnsupportedEncodingException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
// 操作日志
SystemOpeBusiness
sysbusiness
=
BusinessManager
.
getBusiness
(
SystemOpeBusiness
.
class
);
sysbusiness
.
insert_logBusiness
(
"download"
,
"用户["
+
SessionUtil
.
getEmname
()+
"]下载网盘公司文件:"
+
uploadpath
+
File
.
separator
+
uploadnew
,
"下载文件"
,
uploadpath
+
File
.
separator
+
uploadnew
,
request
.
getParameter
(
"uploadold"
)
,
"store"
);
"下载文件"
,
uploadpath
+
File
.
separator
+
uploadnew
,
filename1
,
"store"
);
//
return
ret_download
;
}
...
...
src_jwapp/com/jw/app/store/action/personal/actAction.java
View file @
c23a5070
...
...
@@ -6,6 +6,7 @@ import java.io.File;
import
java.io.FileNotFoundException
;
import
java.io.FileOutputStream
;
import
java.io.IOException
;
import
java.io.UnsupportedEncodingException
;
import
java.sql.Blob
;
import
java.sql.SQLException
;
import
java.text.SimpleDateFormat
;
...
...
@@ -645,10 +646,18 @@ public class actAction extends BasicAction {
}
else
{
ret_download
=
super
.
download
();
}
String
filename1
=
RequestUtils
.
getString
(
request
,
"uploadold"
);
try
{
filename1
=
new
String
(
filename1
.
getBytes
(
"ISO-8859-1"
),
"UTF-8"
);
}
catch
(
UnsupportedEncodingException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
// 操作日志
SystemOpeBusiness
sysbusiness
=
BusinessManager
.
getBusiness
(
SystemOpeBusiness
.
class
);
sysbusiness
.
insert_logBusiness
(
"download"
,
"用户["
+
SessionUtil
.
getEmname
()+
"]下载网盘公司文件:"
+
uploadpath
+
File
.
separator
+
uploadnew
,
"下载文件"
,
uploadpath
+
File
.
separator
+
uploadnew
,
request
.
getParameter
(
"uploadold"
)
,
"storePersonal"
);
"下载文件"
,
uploadpath
+
File
.
separator
+
uploadnew
,
filename1
,
"storePersonal"
);
//
return
ret_download
;
}
...
...
src_system/com/gaowj/uploadfile/actAction.java
View file @
c23a5070
...
...
@@ -6,6 +6,7 @@ import java.io.File;
import
java.io.FileNotFoundException
;
import
java.io.FileOutputStream
;
import
java.io.IOException
;
import
java.io.UnsupportedEncodingException
;
import
java.sql.SQLException
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
...
...
@@ -356,10 +357,19 @@ public class actAction extends BasicAction {
}
else
{
ret_download
=
super
.
download
();
}
String
filename1
=
RequestUtils
.
getString
(
request
,
"uploadold"
);
try
{
filename1
=
new
String
(
filename1
.
getBytes
(
"ISO-8859-1"
),
"UTF-8"
);
}
catch
(
UnsupportedEncodingException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
// 操作日志
SystemOpeBusiness
sysbusiness
=
BusinessManager
.
getBusiness
(
SystemOpeBusiness
.
class
);
sysbusiness
.
insert_logBusiness
(
"uploadFile"
,
"用户["
+
SessionUtil
.
getEmname
()+
"]下载文件:"
+
uploadpath
+
"/"
+
uploadnew
,
"下载文件"
,
uploadpath
+
"/"
+
uploadnew
,
request
.
getParameter
(
"uploadold"
)
,
"uploadfile"
);
"下载文件"
,
uploadpath
+
"/"
+
uploadnew
,
filename1
,
"uploadfile"
);
//
return
ret_download
;
}
...
...
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