From 04be17d63e95c81124ad3bc4a2c3415cf7c90b59 Mon Sep 17 00:00:00 2001 From: wangw <1594593906@qq.com> Date: Sat, 17 Jan 2026 09:55:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E9=99=90=E5=88=B6=E5=BC=80?= =?UTF-8?q?=E9=80=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/czg/controller/admin/ShopMerchantController.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cash-api/order-server/src/main/java/com/czg/controller/admin/ShopMerchantController.java b/cash-api/order-server/src/main/java/com/czg/controller/admin/ShopMerchantController.java index 630e9cdc4..c5c7d0e3e 100644 --- a/cash-api/order-server/src/main/java/com/czg/controller/admin/ShopMerchantController.java +++ b/cash-api/order-server/src/main/java/com/czg/controller/admin/ShopMerchantController.java @@ -2,6 +2,8 @@ package com.czg.controller.admin; import com.czg.annotation.SaAdminCheckPermission; import com.czg.annotation.SaAdminCheckRole; +import com.czg.constant.PayChannelCst; +import com.czg.exception.CzgException; import com.czg.order.dto.ShopMerchantDTO; import com.czg.order.entity.ShopDirectMerchant; import com.czg.order.service.ShopMerchantService; @@ -44,6 +46,9 @@ public class ShopMerchantController { @SaAdminCheckPermission(parentName = "支付参数信息", value = "shopMerchant:edit", name = "商户支付信息修改") @PutMapping public CzgResult edit(@RequestBody ShopMerchantDTO shopMerchant) { + if (shopMerchant != null && shopMerchant.getChannel() != null && shopMerchant.getChannel().equals(PayChannelCst.NATIVE)) { + throw new CzgException("原生支付渠道暂未开通"); + } return CzgResult.success(shopMerchantService.editEntry(shopMerchant, true)); }