From 53548c48b0d8bbaa05f5636ac9f1d3c0b9754fdf Mon Sep 17 00:00:00 2001 From: cabbage <281119120@qq.com> Date: Mon, 7 Jul 2025 09:19:28 +0800 Subject: [PATCH] =?UTF-8?q?##=20=E5=9C=A8=E7=BA=BF=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=B4=A6=E5=8F=B7=EF=BC=8C=E4=B8=8D=E8=B5=B0?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=8C=E7=9B=B4=E6=8E=A5=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=B7=B2=E6=9C=89=E6=94=AF=E4=BB=98=E6=96=B9=E5=BC=8F=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pay/controller/api/PayController.java | 6 ++++ .../hzs/third/pay/vo/OnlinePayConfigVO.java | 34 +------------------ 2 files changed, 7 insertions(+), 33 deletions(-) diff --git a/bd-third/src/main/java/com/hzs/third/pay/controller/api/PayController.java b/bd-third/src/main/java/com/hzs/third/pay/controller/api/PayController.java index 61b25607..3d429121 100644 --- a/bd-third/src/main/java/com/hzs/third/pay/controller/api/PayController.java +++ b/bd-third/src/main/java/com/hzs/third/pay/controller/api/PayController.java @@ -3,6 +3,7 @@ package com.hzs.third.pay.controller.api; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.hzs.activity.base.IActivityServiceApi; import com.hzs.common.core.annotation.RepeatSubmitSimple; +import com.hzs.common.core.constant.SysConstants; import com.hzs.common.core.domain.R; import com.hzs.common.core.enums.*; import com.hzs.common.core.utils.CommonUtil; @@ -346,6 +347,11 @@ public class PayController { payConfigVO.setPay82((Boolean) redisTemplate.opsForValue().get(pay82)); } + if (SysConstants.SPECIAL_CODE.equals(SecurityUtils.getMemberCode())) { + // 在线支付测试账号,强制显示支付方式 + payConfigVO.setPay5(true); + } + return AjaxResult.success(payConfigVO); } diff --git a/bd-third/src/main/java/com/hzs/third/pay/vo/OnlinePayConfigVO.java b/bd-third/src/main/java/com/hzs/third/pay/vo/OnlinePayConfigVO.java index 26c9fab7..409b6445 100644 --- a/bd-third/src/main/java/com/hzs/third/pay/vo/OnlinePayConfigVO.java +++ b/bd-third/src/main/java/com/hzs/third/pay/vo/OnlinePayConfigVO.java @@ -3,20 +3,11 @@ package com.hzs.third.pay.vo; import lombok.Data; /** - * @Description: 在线支付配置VO - * @Author: jiang chao - * @Time: 2022/11/16 13:42 - * @Classname: OnlinePayConfigVO - * @PackageName: com.hzs.web.controller.onlinePayConfig.vo + * 在线支付配置VO */ @Data public class OnlinePayConfigVO { - /** - * 京东银行卡 - */ - private Boolean pay4 = Boolean.FALSE; - /** * 京东收银台(H5) */ @@ -26,29 +17,6 @@ public class OnlinePayConfigVO { */ private Boolean pay6 = Boolean.FALSE; - /** - * 宝付微信 - */ - private Boolean pay11 = Boolean.FALSE; - /** - * 宝付微信扫码 - */ - private Boolean pay12 = Boolean.FALSE; - - /** - * 汇付微信 - */ - private Boolean pay13 = Boolean.FALSE; - /** - * 汇付银行卡 - */ - private Boolean pay15 = Boolean.FALSE; - - /** - * 微信APP - */ - private Boolean pay20 = Boolean.FALSE; - /** * 通联微信 */