123
This commit is contained in:
@@ -57,9 +57,9 @@ public class PayController {
|
|||||||
private static final String NOTIFY_ALI_URL = "/api/pay/ali/notify";
|
private static final String NOTIFY_ALI_URL = "/api/pay/ali/notify";
|
||||||
|
|
||||||
|
|
||||||
@GetMapping(value = "/checkPay")
|
// @GetMapping(value = "/checkPay")
|
||||||
@Operation(summary = "检查使用的支付方式")
|
// @Operation(summary = "检查使用的支付方式")
|
||||||
@Log(title = "检查使用的支付方式", businessType = BusinessType.OTHER, isSaveDb = true)
|
// @Log(title = "检查使用的支付方式", businessType = BusinessType.OTHER, isSaveDb = true)
|
||||||
public R<UsePayResp> checkPayType(){
|
public R<UsePayResp> checkPayType(){
|
||||||
Long userId = LoginHelper.getUserId();
|
Long userId = LoginHelper.getUserId();
|
||||||
boolean userTrdPay = trdPayManager.useTrdPay(userId);
|
boolean userTrdPay = trdPayManager.useTrdPay(userId);
|
||||||
@@ -170,9 +170,9 @@ public class PayController {
|
|||||||
return R.ok(resp);
|
return R.ok(resp);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping(value = "/ali")
|
// @PostMapping(value = "/ali")
|
||||||
@Operation(summary = "支付宝支付")
|
// @Operation(summary = "支付宝支付")
|
||||||
@Log(title = "支付宝支付", businessType = BusinessType.OTHER, isSaveDb = true)
|
// @Log(title = "支付宝支付", businessType = BusinessType.OTHER, isSaveDb = true)
|
||||||
public R<PayReturnResp> aliPay(@RequestBody PayControllerDTO dto) {
|
public R<PayReturnResp> aliPay(@RequestBody PayControllerDTO dto) {
|
||||||
PayOrderInfoDTO payOrderInfo = payManager.getOrderInfo(dto.getOrderNo());
|
PayOrderInfoDTO payOrderInfo = payManager.getOrderInfo(dto.getOrderNo());
|
||||||
if(payOrderInfo == null){
|
if(payOrderInfo == null){
|
||||||
|
|||||||
Reference in New Issue
Block a user