fix - 防止网站攻击
This commit is contained in:
@@ -37,7 +37,7 @@ public class PlatformController extends BaseApiController {
|
||||
/**
|
||||
* 查询平台信息表信息
|
||||
*/
|
||||
@RequestMapping(value = "/platform/{id}", method = RequestMethod.GET)
|
||||
@RequestMapping(value = "/platform/{id:\\d+}", method = RequestMethod.GET)
|
||||
public ResponseDTO findById(@PathVariable("id") Integer id) {
|
||||
return ResponseDTO.ok()
|
||||
.addAttribute("platform", platformService.findById(id));
|
||||
|
||||
@@ -37,7 +37,7 @@ public class PlatformController extends OmsController {
|
||||
/**
|
||||
* 查询平台信息表信息
|
||||
*/
|
||||
@RequestMapping(value = "/platform/{id}", method = RequestMethod.GET)
|
||||
@RequestMapping(value = "/platform/{id:\\d+}", method = RequestMethod.GET)
|
||||
public ResponseDTO findById(@PathVariable("id") Integer id) {
|
||||
return ResponseDTO.ok()
|
||||
.addAttribute("platform", platformService.findById(id));
|
||||
|
||||
Reference in New Issue
Block a user