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)); }