支付取消接口
This commit is contained in:
@@ -15,6 +15,7 @@ import org.springframework.web.bind.annotation.*;
|
|||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
@@ -89,12 +90,11 @@ public class NotifyController {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 支付取消
|
* 支付取消
|
||||||
* @param orderId 订单id
|
|
||||||
* @return 影响数量
|
* @return 影响数量
|
||||||
*/
|
*/
|
||||||
@PostMapping("cancel")
|
@PostMapping("cancel")
|
||||||
public Result notifyCancel(@RequestParam Integer orderId) {
|
public Result notifyCancel(@RequestBody HashMap<String, Integer> data) {
|
||||||
return Result.successWithData(payService.cancelOrder(orderId));
|
return Result.successWithData(payService.cancelOrder(data.get("orderId")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user