From 5f09f9465715960c58a0cd9f0a45ed61bfa42322 Mon Sep 17 00:00:00 2001 From: SongZhang <2064194730@qq.com> Date: Wed, 9 Oct 2024 17:41:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=E5=8F=96=E6=B6=88=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/cashierservice/controller/NotifyController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/controller/NotifyController.java b/src/main/java/com/chaozhanggui/system/cashierservice/controller/NotifyController.java index 93d197c..bcaa549 100644 --- a/src/main/java/com/chaozhanggui/system/cashierservice/controller/NotifyController.java +++ b/src/main/java/com/chaozhanggui/system/cashierservice/controller/NotifyController.java @@ -15,6 +15,7 @@ import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletRequest; import java.util.Date; +import java.util.HashMap; import java.util.Map; import java.util.Random; @@ -89,12 +90,11 @@ public class NotifyController { /** * 支付取消 - * @param orderId 订单id * @return 影响数量 */ @PostMapping("cancel") - public Result notifyCancel(@RequestParam Integer orderId) { - return Result.successWithData(payService.cancelOrder(orderId)); + public Result notifyCancel(@RequestBody HashMap data) { + return Result.successWithData(payService.cancelOrder(data.get("orderId"))); }