This commit is contained in:
jinyu 2015-12-16 17:56:53 +08:00
parent a31b2ff18c
commit 9afa3b06ba
2 changed files with 9 additions and 18 deletions

View File

@ -31,18 +31,18 @@
* closeOrder: 关闭订单接口 * closeOrder: 关闭订单接口
* downloadbill: 下载对账单接口 * downloadBill: 下载对账单接口
* refundQuery: 退款查询接口 * refundQuery: 退款查询接口
[Pay2Api](../api/Pay2Api.java) [Pay2Api](https://github.com/foxinmy/weixin4j/blob/master/weixin4j-mp/src/main/java/com/foxinmy/weixin4j/mp/api/Pay2Api.java)
------------------------- -------------------------
* orderQuery: 订单查询接口 * orderQuery: 订单查询接口
* refundOrder: 退款申请接口 * refundOrder: 退款申请接口
* downloadbill: 下载对账单接口 * downloadBill: 下载对账单接口
* refundQuery: 退款查询接口 * refundQuery: 退款查询接口

View File

@ -70,9 +70,8 @@ public class Weixin4jConfigUtil {
try { try {
value = getValue(key); value = getValue(key);
} catch (MissingResourceException e) { } catch (MissingResourceException e) {
System.err.println("'" + key System.err.println("'" + wrapKeyName(key)
+ "' key not found in weixin4j.properties file."); + "' key not found in weixin4j.properties.");
; // error
} }
return value; return value;
} }
@ -95,15 +94,8 @@ public class Weixin4jConfigUtil {
* @return * @return
*/ */
public static String getClassPathValue(String key, String defaultValue) { public static String getClassPathValue(String key, String defaultValue) {
String value = defaultValue; return new File(getValue(key, defaultValue).replaceFirst(
try { CLASSPATH_PREFIX, CLASSPATH_VALUE)).getPath();
value = getClassPathValue(key);
} catch (MissingResourceException e) {
System.err.println("'" + key
+ "' key not found in weixin4j.properties file.");
; // error
}
return value;
} }
public static WeixinAccount getWeixinAccount() { public static WeixinAccount getWeixinAccount() {
@ -113,8 +105,7 @@ public class Weixin4jConfigUtil {
.parseObject(getValue("account"), WeixinAccount.class); .parseObject(getValue("account"), WeixinAccount.class);
} catch (MissingResourceException e) { } catch (MissingResourceException e) {
System.err System.err
.println("'account' key not found in weixin4j.properties file."); .println("'weixin4j.account' key not found in weixin4j.properties.");
; // error
} }
return account; return account;
} }