| | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.payment.ali.config.AliProperties; |
| | | import com.ruoyi.payment.ali.v2.AppletPayUtil; |
| | | import com.ruoyi.payment.ali.v2.model.PaymentReq; |
| | | import com.ruoyi.payment.ali.v2.model.PaymentResp; |
| | | import com.ruoyi.payment.ali.v2.model.QueryResp; |
| | | import com.ruoyi.payment.ali.v2.model.*; |
| | | import com.ruoyi.payment.api.vo.AliPaymentReq; |
| | | import com.ruoyi.payment.api.vo.AliPaymentResp; |
| | | import com.ruoyi.payment.api.vo.AliQueryOrder; |
| | |
| | | throw new RuntimeException("关闭支付宝订单失败"); |
| | | } |
| | | } |
| | | /** |
| | | * 后台退款 远程调用 |
| | | */ |
| | | @PostMapping("/refund") |
| | | public RefundResp refund(@RequestBody RefundReq dto){ |
| | | return appletPayUtil.refund(dto); |
| | | } |
| | | |
| | | |
| | | |