|
@@ -4,7 +4,10 @@ import cn.newfeifan.mall.framework.common.exception.ErrorCode;
|
|
import cn.newfeifan.mall.framework.common.pojo.CommonResult;
|
|
import cn.newfeifan.mall.framework.common.pojo.CommonResult;
|
|
import cn.newfeifan.mall.module.pay.fuiou.reqvo.SubmitOrderRequestVO;
|
|
import cn.newfeifan.mall.module.pay.fuiou.reqvo.SubmitOrderRequestVO;
|
|
import cn.newfeifan.mall.module.pay.fuiou.respVO.FuYouPaymentResponseVO;
|
|
import cn.newfeifan.mall.module.pay.fuiou.respVO.FuYouPaymentResponseVO;
|
|
|
|
+import cn.newfeifan.mall.module.pay.fuiou.util.FuiouHttpPoster;
|
|
|
|
+import cn.newfeifan.mall.module.pay.fuiou.util.MD5;
|
|
import cn.newfeifan.mall.module.pay.service.fuyouorder.FuYouPayOrderService;
|
|
import cn.newfeifan.mall.module.pay.service.fuyouorder.FuYouPayOrderService;
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -42,6 +45,34 @@ public class NewPayOrderController {
|
|
return success("success");
|
|
return success("success");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @PostMapping("/test1")
|
|
|
|
+ @Operation(summary = "test1")
|
|
|
|
+ public CommonResult<String> test1() {
|
|
|
|
+ FuiouHttpPoster http = new FuiouHttpPoster();
|
|
|
|
+ http.setUrl("//");
|
|
|
|
+ return success("success");
|
|
|
|
+ }
|
|
|
|
+ @PostMapping("/test2")
|
|
|
|
+ @Operation(summary = "test2")
|
|
|
|
+ public CommonResult<String> test2() {
|
|
|
|
+ FuiouHttpPoster http = new FuiouHttpPoster();
|
|
|
|
+ http.setUrl("//");
|
|
|
|
+ String s = MD5.MD5Encode("123");
|
|
|
|
+ return success("success");
|
|
|
|
+ }
|
|
|
|
+ @PostMapping("/test3")
|
|
|
|
+ @Operation(summary = "test3")
|
|
|
|
+ public CommonResult<String> test3() {
|
|
|
|
+ FuiouHttpPoster http = new FuiouHttpPoster();
|
|
|
|
+ http.setUrl("//");
|
|
|
|
+ try {
|
|
|
|
+ String res = http.newPost(JSON.toJSONString(""));
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ throw new RuntimeException(e);
|
|
|
|
+ }
|
|
|
|
+ return success("success");
|
|
|
|
+ }
|
|
|
|
+
|
|
@PostMapping("/notify")
|
|
@PostMapping("/notify")
|
|
@Operation(summary = "富友支付订单回调")
|
|
@Operation(summary = "富友支付订单回调")
|
|
public CommonResult<String> notifyFuYouPayOrder(@RequestBody FuYouPaymentResponseVO responseVO) {
|
|
public CommonResult<String> notifyFuYouPayOrder(@RequestBody FuYouPaymentResponseVO responseVO) {
|