3
0
Fork 0

## 后台支付配置显示添加京东方式返回;

This commit is contained in:
cabbage 2025-08-22 10:14:18 +08:00
parent 1e65681e33
commit 296af0b3e8
1 changed files with 11 additions and 5 deletions

View File

@ -14,11 +14,7 @@ import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
/** /**
* @Description: 在线支付配置 * 在线支付配置
* @Author: jiang chao
* @Time: 2023/3/23 16:15
* @Classname: OnlinePayConfigController
* @PackageName: com.hzs.third.pay.controller.manage
*/ */
@RestController @RestController
@RequestMapping("/manage/online-config") @RequestMapping("/manage/online-config")
@ -40,6 +36,16 @@ public class OnlinePayConfigController {
OnlinePayConfigVO payConfigVO = new OnlinePayConfigVO(); OnlinePayConfigVO payConfigVO = new OnlinePayConfigVO();
// 各支付方式 true=显示false=隐藏 // 各支付方式 true=显示false=隐藏
// 京东收银台H5
String pay5 = String.format(PayConfigConstants.PAY_CONFIG_5, pkCountry);
if (redisTemplate.hasKey(pay5)) {
payConfigVO.setPay5((Boolean) redisTemplate.opsForValue().get(pay5));
}
// 京东收银台PC
String pay6 = String.format(PayConfigConstants.PAY_CONFIG_6, pkCountry);
if (redisTemplate.hasKey(pay6)) {
payConfigVO.setPay6((Boolean) redisTemplate.opsForValue().get(pay6));
}
// 新汇付PC微信扫码支付 // 新汇付PC微信扫码支付
String pay81 = String.format(PayConfigConstants.PAY_CONFIG_81, pkCountry); String pay81 = String.format(PayConfigConstants.PAY_CONFIG_81, pkCountry);