|
|
@@ -30,7 +30,7 @@ public class ExchangeCodeController {
|
|
|
* 兑换车票
|
|
|
*/
|
|
|
@PostMapping("/exchange")
|
|
|
- public Result<String> exchangeCode(@RequestBody ExchangeCodeTicket exchangeCodeTicket) {
|
|
|
+ public Result<String> exchangeCode(@RequestBody ExchangeCodeTicket exchangeCodeTicket) throws Exception {
|
|
|
long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
exchangeCodeTicket.setUserId(userId);
|
|
|
exchangeCodeService.exchangeCode(exchangeCodeTicket);
|