| | |
| | | //未设置支付参数,则使用默认支付参数 |
| | | config = getOne(Wrappers.lambdaQuery(WxConfigEntity.class).eq(WxConfigEntity::getClientId, pole.getClientId()).eq(WxConfigEntity::getState, 1)); |
| | | // if (pole.getClientId() == null) { |
| | | //没有归属的灯杆使用默认配置 |
| | | //没有归属的灯杆使用默认配置 |
| | | // config = getById(15); |
| | | // } |
| | | if (config == null) { |
| | |
| | | return config; |
| | | } |
| | | |
| | | public WxConfigEntity getConfigByAppId(String appId) { |
| | | if (appId == null) { |
| | | throw new BusinessException("回调失败,未解析到appid"); |
| | | } |
| | | WxConfigEntity config; |
| | | //未设置支付参数,则使用默认支付参数 |
| | | config = getOne(Wrappers.lambdaQuery(WxConfigEntity.class).eq(WxConfigEntity::getAppappid, appId).eq(WxConfigEntity::getState, 1)); |
| | | |
| | | if (config == null) { |
| | | throw new BusinessException("未找到支付配置或配置未启用,请联系管理员!"); |
| | | } |
| | | // if (pole.getClientId() == null) { |
| | | //没有归属的灯杆使用默认配置 |
| | | // config = getById(15); |
| | | // } |
| | | return config; |
| | | } |
| | | |
| | | |
| | | public static UsrWxPayConfigService getBean() { |
| | | return (UsrWxPayConfigService) SpringContextUtil.getBean("UsrWxPayConfigService"); |