update md

This commit is contained in:
jy.hu
2014-11-06 10:48:20 +08:00
parent 20d021ceff
commit e6b60a4304
9 changed files with 42 additions and 28 deletions
@@ -383,7 +383,6 @@
<desc>ORDERPAID</desc>
<text>订单已支付</text>
</error>
<error>
<code>OUT_TRADE_NO_USED</code>
<desc>OUT_TRADE_NO_USED</desc>
@@ -26,14 +26,6 @@ public abstract class AbstractTokenHolder implements TokenHolder {
this.weixinConfig = new WeixinConfig(appid, appsecret);
}
protected String getAppid() {
return this.weixinConfig.getAppId();
}
protected String getAppsecret() {
return this.weixinConfig.getAppSecret();
}
public WeixinConfig getConfig() {
return this.weixinConfig;
}
@@ -50,8 +50,8 @@ public class FileTokenHolder extends AbstractTokenHolder {
*/
@Override
public Token getToken() throws WeixinException {
String appid = getAppid();
String appsecret = getAppsecret();
String appid = getConfig().getAppId();
String appsecret = getConfig().getAppSecret();
if (StringUtils.isBlank(appid) || StringUtils.isBlank(appsecret)) {
throw new IllegalArgumentException(
"appid or appsecret not be null!");
@@ -48,8 +48,8 @@ public class RedisTokenHolder extends AbstractTokenHolder {
@Override
public Token getToken() throws WeixinException {
String appid = getAppid();
String appsecret = getAppsecret();
String appid = getConfig().getAppId();
String appsecret = getConfig().getAppSecret();
if (StringUtils.isBlank(appid) || StringUtils.isBlank(appsecret)) {
throw new IllegalArgumentException(
"appid or appsecret not be null!");