修复微信支付,兼容公钥模块

This commit is contained in:
2025-07-29 13:40:01 +08:00
parent 57820a35da
commit 20d244d34c

View File

@@ -39,7 +39,7 @@ public class PaymentCacheService {
*/
public Payment getPaymentConfig(Integer payType, Integer tenantId) {
// 1. 优先使用 Payment:1{payType} 格式的缓存键
String primaryKey = "Payment:1" + payType;
String primaryKey = "Payment:1:" + tenantId;
Payment payment = redisUtil.get(primaryKey, Payment.class);
if (ObjectUtil.isNotEmpty(payment)) {