get请求

This commit is contained in:
2025-03-01 13:55:30 +08:00
parent 4bd52a362f
commit d925081861

View File

@@ -121,13 +121,13 @@ public class OrderPayController {
* 获取店铺订单支付URL * 获取店铺订单支付URL
*/ */
@GetMapping("/shopPayApi/orderPayUrl") @GetMapping("/shopPayApi/orderPayUrl")
public CzgResult<String> getOrderPayUrl(@RequestHeader Long shopId, Long orderId, @RequestParam(required = false) String extend, public CzgResult<String> getOrderPayUrl(@RequestHeader Long shopId,@RequestParam(required = false) String extend,
@RequestParam(required = false) CheckOrderPay checkOrderPay) { CheckOrderPay checkOrderPay) {
AssertUtil.isNull(shopId, "店铺id不能为空"); AssertUtil.isNull(shopId, "店铺id不能为空");
AssertUtil.isNull(orderId, "订单Id不能为空"); AssertUtil.isNull(checkOrderPay, "订单信息不能为空");
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("shopId", shopId); map.put("shopId", shopId);
map.put("orderId", orderId); map.put("orderId", checkOrderPay.getOrderId());
map.put("payAmount", checkOrderPay.getOrderAmount()); map.put("payAmount", checkOrderPay.getOrderAmount());
map.put("extend", StrUtil.isEmpty(extend) ? "" : extend); map.put("extend", StrUtil.isEmpty(extend) ? "" : extend);
if (checkOrderPay.getOrderId() != null) { if (checkOrderPay.getOrderId() != null) {