mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-08 01:48:33 +08:00
ticketValidate
This commit is contained in:
parent
cd00a039c9
commit
a90fb9ad20
@ -19,9 +19,9 @@ public class OnlineTicketEndpoint {
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value="/validate")
|
||||
public OnlineTicket ticketValidate(
|
||||
public String ticketValidate(
|
||||
@RequestParam(value ="ticket",required = true) String ticket) {
|
||||
OnlineTicket onlineTicket = onlineTicketServices.get(ticket);
|
||||
return onlineTicket;
|
||||
return onlineTicket == null ? "" :onlineTicket.getTicketId();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user