|
|
@@ -1,11 +1,8 @@
|
|
|
package com.kym.miniapp.controller;
|
|
|
|
|
|
-import cn.dev33.satoken.annotation.SaIgnore;
|
|
|
import com.kym.service.cache.KymCache;
|
|
|
import jakarta.servlet.http.HttpServletResponse;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
|
@@ -21,9 +18,8 @@ public class ParkingCouponController {
|
|
|
/**
|
|
|
* 停车优惠链接跳转
|
|
|
*/
|
|
|
- @SaIgnore
|
|
|
- @RequestMapping("/{code}")
|
|
|
- public void jump(HttpServletResponse response, @PathVariable String code) throws IOException {
|
|
|
+ @GetMapping
|
|
|
+ public void jump(HttpServletResponse response, @RequestParam String code) throws IOException {
|
|
|
// 从缓存中获取链接并跳转
|
|
|
var url = KymCache.INSTANCE.getParkingCouponUrl(code);
|
|
|
response.sendRedirect(url);
|