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: 关闭订单接口
* downloadbill: 下载对账单接口
* downloadBill: 下载对账单接口
* 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: 订单查询接口
* refundOrder: 退款申请接口
* downloadbill: 下载对账单接口
* downloadBill: 下载对账单接口
* refundQuery: 退款查询接口

View File

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