Commit 3911c327 authored by Administrator's avatar Administrator

创建项目

parent aa3faa16
...@@ -50,11 +50,6 @@ public class PayTestController extends BusinessController { ...@@ -50,11 +50,6 @@ public class PayTestController extends BusinessController {
return "pay/h5"; return "pay/h5";
} }
@RequestMapping("ipv4")
public String ipv4(HttpServletRequest request) {
return "var CLIENT_IP=\"" + getClientAddress(request) + "\"";
}
@RequestMapping("checkPay") @RequestMapping("checkPay")
public String checkPay(CheckPayRequestData data, Model model, HttpServletRequest servletRequest) throws Exception { public String checkPay(CheckPayRequestData data, Model model, HttpServletRequest servletRequest) throws Exception {
String res = ""; String res = "";
......
...@@ -4,12 +4,19 @@ import org.springframework.http.ResponseEntity; ...@@ -4,12 +4,19 @@ import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
/** /**
* Created by Administrator on 2021/9/28 0028. * Created by Administrator on 2021/9/28 0028.
*/ */
@RestController @RestController
@RequestMapping("/tech") @RequestMapping("/tech")
public class TechController { public class TechController extends BusinessController{
@RequestMapping("ipv4")
public String ipv4(HttpServletRequest request) {
return "var CLIENT_IP=\"" + getClientAddress(request) + "\";";
}
@RequestMapping("/health/check") @RequestMapping("/health/check")
public ResponseEntity checkHealth() throws Exception { public ResponseEntity checkHealth() throws Exception {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment