Pārlūkot izejas kodu

404优化与二级页面

chao 4 gadi atpakaļ
vecāks
revīzija
ea6d03eca0

+ 1 - 1
src/main/java/com/caimei/www/controller/RedirectController.java

@@ -37,7 +37,7 @@ public class RedirectController {
 	@GetMapping("/cmpage/info-1-{id}.html")
 	public String toTopic(@PathVariable("id") Integer type) {
 		// 二手商品【旧】
-		if (Integer.valueOf(189).equals(type)){
+		if (Integer.valueOf("189").equals(type)){
 			return "redirect:/flea-market/list.html";
 		}
 		return "redirect:/topic.html?type=" + type;

+ 1 - 1
src/main/resources/templates/error/404.html

@@ -41,7 +41,7 @@
 <template th:replace="components/header"></template>
 
 <!-- 404页面 -->
-<div>
+<div style="text-align:center;">
     <iframe id="errorContent" src="/search_children.html"></iframe>
 </div>
 <!-- 引入底部 -->