再次查询充值

This commit is contained in:
sxu 2025-04-09 13:41:22 +08:00
parent b322b482ca
commit 1c958696d9
1 changed files with 3 additions and 2 deletions

View File

@ -19,6 +19,7 @@ import com.bonus.common.security.utils.SecurityUtils;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
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;
@ -42,7 +43,7 @@ public class PayController {
@Autowired @Autowired
IAccTradeService accTradeService; IAccTradeService accTradeService;
@RequestMapping("pay") @PostMapping("pay")
public void pay(@RequestBody AccTradeVo accTradeVo, HttpServletResponse response) throws AlipayApiException, IOException { public void pay(@RequestBody AccTradeVo accTradeVo, HttpServletResponse response) throws AlipayApiException, IOException {
// 预装数据存档 // 预装数据存档
accTradeVo.setUserId(SecurityUtils.getUserId()); accTradeVo.setUserId(SecurityUtils.getUserId());
@ -81,7 +82,7 @@ public class PayController {
* @param accTradeVo 商户订单号 * @param accTradeVo 商户订单号
* @return 订单查询结果 * @return 订单查询结果
*/ */
@RequestMapping("queryOrder") @PostMapping("queryOrder")
public AlipayTradeQueryResponse queryOrder(@RequestBody AccTradeVo accTradeVo) { public AlipayTradeQueryResponse queryOrder(@RequestBody AccTradeVo accTradeVo) {
// 创建查询请求 // 创建查询请求
AlipayTradeQueryRequest request = new AlipayTradeQueryRequest(); AlipayTradeQueryRequest request = new AlipayTradeQueryRequest();