|
@@ -1,19 +1,16 @@
|
|
|
package com.seecoder.BlueWhale.controller;
|
|
package com.seecoder.BlueWhale.controller;
|
|
|
|
|
|
|
|
-import com.seecoder.BlueWhale.configure.AlipayTools;
|
|
|
|
|
import com.seecoder.BlueWhale.enums.OrderStatusEnum;
|
|
import com.seecoder.BlueWhale.enums.OrderStatusEnum;
|
|
|
import com.seecoder.BlueWhale.po.Coupon;
|
|
import com.seecoder.BlueWhale.po.Coupon;
|
|
|
import com.seecoder.BlueWhale.po.Order;
|
|
import com.seecoder.BlueWhale.po.Order;
|
|
|
import com.seecoder.BlueWhale.repository.CouponRepository;
|
|
import com.seecoder.BlueWhale.repository.CouponRepository;
|
|
|
import com.seecoder.BlueWhale.repository.OrderRepository;
|
|
import com.seecoder.BlueWhale.repository.OrderRepository;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
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;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
|
@@ -21,9 +18,6 @@ import java.util.Map;
|
|
|
@RequestMapping("/api/ali")
|
|
@RequestMapping("/api/ali")
|
|
|
public class AliPayController {
|
|
public class AliPayController {
|
|
|
|
|
|
|
|
- @Autowired
|
|
|
|
|
- AlipayTools alipayTools;
|
|
|
|
|
-
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
OrderRepository orderRepository;
|
|
OrderRepository orderRepository;
|
|
|
|
|
|
|
@@ -54,8 +48,4 @@ public class AliPayController {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @GetMapping("/test")
|
|
|
|
|
- public void test(HttpServletResponse httpServletResponse){
|
|
|
|
|
- alipayTools.testPay("test",666.0,httpServletResponse);
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|