|
|
@@ -111,7 +111,11 @@ public class WeChatPaymentMininProgramStrategyImpl implements PaymentStrategy {
|
|
|
}
|
|
|
LambdaQueryWrapper<StorePaymentConfig> wrapper = new LambdaQueryWrapper<>();
|
|
|
wrapper.eq(StorePaymentConfig::getWechatPayPublicKeyId, wechatPayPublicKeyId);
|
|
|
- return storePaymentConfigMapper.selectList(wrapper).getFirst();
|
|
|
+ List<StorePaymentConfig> storePaymentConfigs = storePaymentConfigMapper.selectList(wrapper);
|
|
|
+ if (storePaymentConfigs.isEmpty()) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ return storePaymentConfigs.get(0);
|
|
|
}
|
|
|
|
|
|
/**
|