Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
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
AutogeneralShanghai
yd-backend
Commits
96a768f9
Commit
96a768f9
authored
Nov 09, 2021
by
hongzhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除错误页面中的联系电话
parent
fb7d7562
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
12 deletions
+8
-12
yd-api/src/main/java/com/yd/api/AppErrorController.java
+2
-3
yd-api/src/main/resources/static/error404.html
+2
-3
yd-api/src/main/resources/static/error500.html
+2
-3
yd-api/src/main/resources/static/errorunknown.html
+2
-3
No files found.
yd-api/src/main/java/com/yd/api/AppErrorController.java
View file @
96a768f9
...
...
@@ -102,7 +102,7 @@ public class AppErrorController implements ErrorController{
JsonResult
result
=
new
JsonResult
();
ErrorResponseVO
errorResponseVO
=
new
ErrorResponseVO
();
errorResponseVO
.
setCommonResult
(
new
CommonResult
(
false
,
"API not exist! Please go to our home page https://www.ydinsurance.cn/
, or call 13661741633.
"
));
errorResponseVO
.
setCommonResult
(
new
CommonResult
(
false
,
"API not exist! Please go to our home page https://www.ydinsurance.cn/"
));
result
.
setData
(
new
ResponseEntity
<
Map
<
String
,
Object
>>(
body
,
status
));
result
.
addResult
(
errorResponseVO
);
...
...
@@ -151,4 +151,4 @@ public class AppErrorController implements ErrorController{
return
HttpStatus
.
INTERNAL_SERVER_ERROR
;
}
}
\ No newline at end of file
}
yd-api/src/main/resources/static/error404.html
View file @
96a768f9
...
...
@@ -7,7 +7,7 @@
<div
class=
"cover"
>
<h1>
Our apologies for resource not found.
</h1>
<p
class=
"lead"
>
This API stepped out for a quick ride.
</p>
<p>
Please go to our home page
<a
href =
"https://www.ydinsurance.cn/"
target =
"_blank"
>
https://www.ydinsurance.cn/
</a>
, or call 13661741633.
</p>
<p>
Please go to our home page
<a
href =
"https://www.ydinsurance.cn/"
target =
"_blank"
>
https://www.ydinsurance.cn/
</a></p>
</div>
</body>
</html>
\ No newline at end of file
</html>
yd-api/src/main/resources/static/error500.html
View file @
96a768f9
...
...
@@ -7,7 +7,7 @@
<div
class=
"cover"
>
<h1>
Our apologies for internal error.
</h1>
<p
class=
"lead"
>
This API stepped out for a quick ride.
</p>
<p>
Please go to our home page
<a
href =
"https://www.ydinsurance.cn/"
target =
"_blank"
>
https://www.ydinsurance.cn/
</a>
, or call 13661741633.
</p>
<p>
Please go to our home page
<a
href =
"https://www.ydinsurance.cn/"
target =
"_blank"
>
https://www.ydinsurance.cn/
</a></p>
</div>
</body>
</html>
\ No newline at end of file
</html>
yd-api/src/main/resources/static/errorunknown.html
View file @
96a768f9
...
...
@@ -7,7 +7,7 @@
<div
class=
"cover"
>
<h1>
Our apologies for unknown error.
</h1>
<p
class=
"lead"
>
This API stepped out for a quick ride.
</p>
<p>
Please go to our home page
<a
href =
"https://www.ydinsurance.cn/"
target =
"_blank"
>
https://www.ydinsurance.cn/
</a>
, or call 13661741633.
</p>
<p>
Please go to our home page
<a
href =
"https://www.ydinsurance.cn/"
target =
"_blank"
>
https://www.ydinsurance.cn/
</a></p>
</div>
</body>
</html>
\ No newline at end of file
</html>
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