Procházet zdrojové kódy

:art: 去掉重复代码

Binary Wang před 1 rokem
rodič
revize
15d14929df

+ 0 - 10
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/EcommerceServiceImpl.java

@@ -195,16 +195,6 @@ public class EcommerceServiceImpl implements EcommerceService {
   }
 
   @Override
-  public FundBalanceResult subNowBalance(String subMchid, SpAccountTypeEnum accountType) throws WxPayException {
-    String url = String.format("%s/v3/ecommerce/fund/balance/%s", this.payService.getPayBaseUrl(), subMchid);
-    if (Objects.nonNull(accountType)) {
-      url += "?account_type=" + accountType.getValue();
-    }
-    String response = this.payService.getV3(url);
-    return GSON.fromJson(response, FundBalanceResult.class);
-  }
-
-  @Override
   public FundBalanceResult subDayEndBalance(String subMchid, String date) throws WxPayException {
     String url = String.format("%s/v3/ecommerce/fund/enddaybalance/%s?date=%s", this.payService.getPayBaseUrl(), subMchid, date);
     String response = this.payService.getV3(url);