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