Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
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
李丛阳
education
Commits
d0fe3155
Commit
d0fe3155
authored
Jan 15, 2020
by
lu
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'aliyun/master-1.0.1' into meiteng
parents
80489216
c3c307fd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
BChapterServiceImpl.java
...t/business/bchapter/service/impl/BChapterServiceImpl.java
+8
-7
No files found.
src/main/java/org/rcisoft/business/bchapter/service/impl/BChapterServiceImpl.java
View file @
d0fe3155
...
@@ -717,18 +717,19 @@ public class BChapterServiceImpl implements BChapterService {
...
@@ -717,18 +717,19 @@ public class BChapterServiceImpl implements BChapterService {
String
filePath
=
global
.
getBASE_UPLOAD_SERVER_LOCATION
()
+
global
.
getCOURSE_LOCATION
()
+
File
.
separator
+
"temp"
;
String
filePath
=
global
.
getBASE_UPLOAD_SERVER_LOCATION
()
+
global
.
getCOURSE_LOCATION
()
+
File
.
separator
+
"temp"
;
File
file
=
new
File
(
filePath
);
File
file
=
new
File
(
filePath
);
File
fileOld
=
new
File
(
filePath
+
File
.
separator
+
name
);
File
fileOld
=
new
File
(
filePath
+
File
.
separator
+
name
);
String
path
;
if
(
fileOld
.
exists
())
{
if
(
fileOld
.
exists
())
{
LogUtil
.
fileChangeLog
(
"------------------文件名重复-------------------------"
+
fileOld
);
path
=
fileOld
.
getPath
();
throw
new
ServiceException
(
ResultServiceEnums
.
DUP_FILE
);
}
else
{
}
else
{
LogUtil
.
fileChangeLog
(
"------------------下载-------------------------"
+
fileOld
);
LogUtil
.
fileChangeLog
(
"------------------下载-------------------------"
+
fileOld
);
String
downLoadName
=
downLoadFile
(
bFile
,
file
,
filePath
);
String
downLoadName
=
downLoadFile
(
bFile
,
file
,
filePath
);
LogUtil
.
fileChangeLog
(
"------------------判断可读-------------------------"
+
fileOld
);
LogUtil
.
fileChangeLog
(
"------------------判断可读-------------------------"
+
fileOld
);
path
=
filePath
+
File
.
separator
+
downLoadName
;
}
if
(
"7"
.
equals
(
bFile
.
getType
())
||
"8"
.
equals
(
bFile
.
getType
())
||
"9"
.
equals
(
bFile
.
getType
())
||
"10"
.
equals
(
bFile
.
getType
())){
if
(
"7"
.
equals
(
bFile
.
getType
())
||
"8"
.
equals
(
bFile
.
getType
())
||
"9"
.
equals
(
bFile
.
getType
())
||
"10"
.
equals
(
bFile
.
getType
())){
FileReadableUtil
.
imgReadable
(
filePath
+
File
.
separator
+
downLoadName
);
FileReadableUtil
.
imgReadable
(
path
);
}
else
{
}
else
{
FileReadableUtil
.
fileReadable
(
filePath
+
File
.
separator
+
downLoadName
,
fileMaxSize
,
fileMaxPages
);
FileReadableUtil
.
fileReadable
(
path
,
fileMaxSize
,
fileMaxPages
);
}
}
}
return
flag
;
return
flag
;
}
}
...
...
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