src/main/java/com/taoke/autopay/utils/order/OrderChannelApiUtil.java
@@ -36,6 +36,7 @@ * @param: orderChannelName **/ public static boolean isMerchantCanPay(OrderChannelEnum channel, String merchant, BigDecimal payMoney) throws UnsupportedEncodingException { try { if (channel == OrderChannelEnum.cyx) { String url = String.format("https://api.youihuo.com/open/free.checkKsCompanyName?bsName=%s&apiKey=%s", URLEncoder.encode(merchant, "UTF-8"), OrderChannelUtil.CYX_API_KEY); String result = HttpUtil.get(url); @@ -66,6 +67,9 @@ } } } }catch(Exception e){ logger.error("商家验证错误:", e); } return false; }