|
@@ -8,7 +8,6 @@ import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.ui.Model;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
|
/**
|
|
|
* Description
|
|
@@ -31,8 +30,9 @@ public class HelpPageController extends BaseController {
|
|
|
* 帮助页
|
|
|
*/
|
|
|
@GetMapping("/help/{id}.html")
|
|
|
- public String help(final Model model, @RequestParam(value="id",defaultValue = "1016") Integer id ) {
|
|
|
+ public String help(final Model model, @PathVariable Integer id ) {
|
|
|
// 默认平台介绍
|
|
|
+ if(null == id) {id = 1016;}
|
|
|
PageContent helpPage = helpService.getHelpPageById(id);
|
|
|
model.addAttribute("pageInfo", helpPage);
|
|
|
return HELP_PAGE_PATH;
|