|
@@ -133,6 +133,7 @@ public class UserController {
|
|
|
@GetMapping("/get/ticket/code/detail")
|
|
@GetMapping("/get/ticket/code/detail")
|
|
|
public Result<ExchangeCodeDetailView> getTicketCodeDetail(
|
|
public Result<ExchangeCodeDetailView> getTicketCodeDetail(
|
|
|
@RequestParam(value = "code", required = false) String code) throws Exception {
|
|
@RequestParam(value = "code", required = false) String code) throws Exception {
|
|
|
|
|
+ StpUserUtil.getLoginIdAsLong();
|
|
|
// Spring already decodes query parameters. Never decode a second time.
|
|
// Spring already decodes query parameters. Never decode a second time.
|
|
|
// Accept legacy underscore/hyphen codes, but reject whitespace and encoded payloads.
|
|
// Accept legacy underscore/hyphen codes, but reject whitespace and encoded payloads.
|
|
|
if (code == null || !code.matches("[A-Za-z0-9_-]{1,256}")) {
|
|
if (code == null || !code.matches("[A-Za-z0-9_-]{1,256}")) {
|