This commit is contained in:
2025-11-17 17:16:42 +08:00
parent ff4c7c1a35
commit a748a925fa

View File

@@ -0,0 +1,35 @@
package com.czg.controller;
import com.alibaba.fastjson2.JSONObject;
import jakarta.servlet.http.HttpServletRequest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
/**
* 回调
* @author ww
* @description
*/
@Slf4j
@RestController
@RequestMapping("/notify")
public class NotifyController {
private static final String SUCCESS = "SUCCESS";
@PostMapping("testOpen")
public JSONObject test1(@RequestBody String string) throws Exception {
log.info("扫码回调Post:{}",string);
return null;
}
@GetMapping("testOpen")
public JSONObject test12(HttpServletRequest request) throws Exception {
request.getParameterMap().forEach((k,v)->{
log.info("扫码回调Get {}:{}",k,v[0]);
});
return null;
}
}