update md
This commit is contained in:
@@ -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!");
|
||||
|
||||
Reference in New Issue
Block a user