Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tanpu-community
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
探普后端
tanpu-community
Commits
fbc5a161
Commit
fbc5a161
authored
Nov 10, 2021
by
钱坤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
e.printStackTrace()改为log.error()
parent
1b1a775e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
OSSFileService.java
...main/java/com/tanpu/community/service/OSSFileService.java
+1
-1
TencentcloudUtils.java
...main/java/com/tanpu/community/util/TencentcloudUtils.java
+0
-2
No files found.
community-service/src/main/java/com/tanpu/community/service/OSSFileService.java
View file @
fbc5a161
...
@@ -105,7 +105,7 @@ public class OSSFileService {
...
@@ -105,7 +105,7 @@ public class OSSFileService {
try
{
try
{
bi
=
ImageIO
.
read
(
bins
);
bi
=
ImageIO
.
read
(
bins
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
log
.
error
(
"{}"
,
e
.
getMessage
(),
e
);
}
}
HashMap
<
String
,
Integer
>
attr
=
new
HashMap
<>();
HashMap
<
String
,
Integer
>
attr
=
new
HashMap
<>();
if
(
bi
!=
null
)
{
if
(
bi
!=
null
)
{
...
...
community-service/src/main/java/com/tanpu/community/util/TencentcloudUtils.java
View file @
fbc5a161
...
@@ -91,7 +91,6 @@ public class TencentcloudUtils {
...
@@ -91,7 +91,6 @@ public class TencentcloudUtils {
}
}
}
catch
(
TencentCloudSDKException
e
)
{
}
catch
(
TencentCloudSDKException
e
)
{
log
.
error
(
"调用腾文本内容安全异常"
);
log
.
error
(
"调用腾文本内容安全异常"
);
e
.
printStackTrace
();
//调用失败时,不影响用户发布主题
//调用失败时,不影响用户发布主题
return
""
;
return
""
;
}
}
...
@@ -115,7 +114,6 @@ public class TencentcloudUtils {
...
@@ -115,7 +114,6 @@ public class TencentcloudUtils {
}
}
}
catch
(
TencentCloudSDKException
e
)
{
}
catch
(
TencentCloudSDKException
e
)
{
log
.
error
(
"调用腾讯图片内容检测异常"
);
log
.
error
(
"调用腾讯图片内容检测异常"
);
e
.
printStackTrace
();
return
CommonResp
.
failed
(
"图片检查异常"
);
return
CommonResp
.
failed
(
"图片检查异常"
);
}
}
return
CommonResp
.
success
();
return
CommonResp
.
success
();
...
...
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