|
@@ -102,18 +102,6 @@ public class ProductController extends BaseController {
|
|
|
return INSTRUMENT_PAGE_PATH;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 美体节活动页
|
|
|
- */
|
|
|
- @GetMapping("/product/temporary.html")
|
|
|
- public String temporary(Integer id) {
|
|
|
- Integer pageId = singlePageService.getInstrumentPageIdById(id);
|
|
|
- if (pageId == null) {
|
|
|
- return super.errorPath();
|
|
|
- }
|
|
|
- return TEMPORARY_PAGE_PATH;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 商品分类列表页面
|
|
|
*/
|
|
@@ -125,7 +113,7 @@ public class ProductController extends BaseController {
|
|
|
/**
|
|
|
* 美博会专题页
|
|
|
*/
|
|
|
- @GetMapping("/product/beautytopic.html")
|
|
|
+ @GetMapping("/product/beauty.html")
|
|
|
public String beautytopic() {
|
|
|
return BEAUTY_TOP_PATH;
|
|
|
}
|
|
@@ -133,7 +121,7 @@ public class ProductController extends BaseController {
|
|
|
/**
|
|
|
* 正品联盟品牌授权商品详情页
|
|
|
*/
|
|
|
- @GetMapping("product/auth/product-{id}.html")
|
|
|
+ @GetMapping("/product/auth/product-{id}.html")
|
|
|
public String authorization(final Model model, @PathVariable("id") Integer productId) {
|
|
|
model.addAttribute("productId", productId);
|
|
|
return QUALITY_AUTHORRIZE_PATH;
|
|
@@ -142,13 +130,24 @@ public class ProductController extends BaseController {
|
|
|
/**
|
|
|
* 活动专题页
|
|
|
*/
|
|
|
- @GetMapping("activity/activityTopic.html")
|
|
|
- public String activityTopic(final Model model, Integer id) {
|
|
|
- Integer pageId = singlePageService.getActivityPageIdById(id);
|
|
|
+ @GetMapping("/product/activity-{id}.html")
|
|
|
+ public String activityTopic(final Model model, @PathVariable("id") Integer id) {
|
|
|
+ Integer pageId = null;
|
|
|
+ if (id == 301) {
|
|
|
+ // 美体节活动页
|
|
|
+ pageId = singlePageService.getInstrumentPageIdById(id);
|
|
|
+ if (pageId == null) {
|
|
|
+ return super.errorPath();
|
|
|
+ }
|
|
|
+ return TEMPORARY_PAGE_PATH;
|
|
|
+ }
|
|
|
+ // 活动专题页
|
|
|
+ pageId = singlePageService.getActivityPageIdById(id);
|
|
|
if (pageId == null) {
|
|
|
return super.errorPath();
|
|
|
}
|
|
|
model.addAttribute("pageId", id);
|
|
|
return ACTIVITY_TOP_PATH;
|
|
|
}
|
|
|
+
|
|
|
}
|