修复微信支付配置报错

This commit is contained in:
paulGao 2022-01-27 11:26:17 +08:00
parent f235f66c19
commit 77e526c22f

View File

@ -1,8 +1,5 @@
package cn.lili.modules.system.entity.dto.payment; package cn.lili.modules.system.entity.dto.payment;
import cn.lili.common.enums.ResultCode;
import cn.lili.common.exception.ServiceException;
import com.alibaba.druid.util.StringUtils;
import lombok.Data; import lombok.Data;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
@ -52,26 +49,4 @@ public class WechatPaymentSetting {
* apiv3私钥 * apiv3私钥
*/ */
private String apiKey3; private String apiKey3;
public String getAppIdValue() {
if (StringUtils.isEmpty(appId)) {
throw new ServiceException(ResultCode.WECHAT_PAYMENT_NOT_SETTING);
}
return appId;
}
public String getMpAppIdValue() {
if (StringUtils.isEmpty(mpAppId)) {
throw new ServiceException(ResultCode.WECHAT_PAYMENT_NOT_SETTING);
}
return mpAppId;
}
public String getServiceAppIdValue() {
if (StringUtils.isEmpty(serviceAppId)) {
throw new ServiceException(ResultCode.WECHAT_PAYMENT_NOT_SETTING);
}
return serviceAppId;
}
} }