diff --git a/lib/api_common.js b/lib/api_common.js index 1c81812..43846f4 100644 --- a/lib/api_common.js +++ b/lib/api_common.js @@ -191,6 +191,11 @@ API.prototype.preRequest = function (method, args, retryed) { if (err) { return callback(err); } + //重发时清除token,重新获取 + if (retryed) { + token = null; + } + var accessToken; // 有token并且token有效直接调用 if (token && (accessToken = AccessToken(token.accessToken, token.expireTime)).isValid()) {