| | |
| | | import com.alipay.api.request.AlipayTradeAppPayRequest; |
| | | import com.alipay.api.response.AlipayTradeAppPayResponse; |
| | | |
| | | import com.alipay.api.response.AlipayTradeQueryResponse; |
| | | import com.mzl.flower.base.BaseController; |
| | | import com.mzl.flower.base.R; |
| | | import com.mzl.flower.config.pay.AlipayProperties; |
| | | import com.mzl.flower.dto.request.pay.PayQueryDTO; |
| | | import com.mzl.flower.dto.request.productOrders.ProductOrdersCreateDTO; |
| | | import com.mzl.flower.entity.productOrders.ProductOrdersDO; |
| | | import com.mzl.flower.enums.PayTypeEnum; |
| | | import com.mzl.flower.service.pay.AlipayService; |
| | | import com.mzl.flower.service.productOrders.ProductOrdersService; |
| | | import com.mzl.flower.utils.alipay.OrderInfoUtil2_0; |
| | | import io.swagger.annotations.Api; |
| | |
| | | |
| | | @Autowired |
| | | private ProductOrdersService productOrdersService; |
| | | |
| | | @Autowired |
| | | private AlipayService alipayService; |
| | | |
| | | /** |
| | | * 获取订单支付请求参数 |
| | |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | @PostMapping(value = "/order/status") |
| | | @ApiOperation(value = "订单状态") |
| | | public AlipayTradeQueryResponse queryOrderByOutOrderNo(@Validated @RequestBody PayQueryDTO payQueryDTO, HttpServletRequest request) throws Exception{ |
| | | AlipayTradeQueryResponse response=alipayService.queryOrderByOutOrderNo(payQueryDTO.getOuterOrderNo()); |
| | | return response; |
| | | } |
| | | /** |
| | | * 支付宝回调url |
| | | * @param request |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | @PostMapping(value = "/notify") |
| | | @ApiOperation(value = "支付宝回调url") |
| | | public String notify(HttpServletRequest request) throws Exception{ |