forked from Wechat-Group/WxJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Wechat-Group#1590 提及的me.chanjar.weixin.open.api.impl.WxOpenCompon…
…entServiceImpl#getAuthorizerAccessToken()刷新AccessToken后没有同步对应的refreshToken
- Loading branch information
Showing
5 changed files
with
18 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 4 additions & 16 deletions
20
weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/WxOpenAuthorizerAccessToken.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,24 @@ | ||
package me.chanjar.weixin.open.bean; | ||
|
||
import lombok.Data; | ||
import me.chanjar.weixin.open.util.json.WxOpenGsonBuilder; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* @author <a href="https://github.com/007gzs">007</a> | ||
*/ | ||
@Data | ||
public class WxOpenAuthorizerAccessToken implements Serializable { | ||
private static final long serialVersionUID = -4069745419280727420L; | ||
|
||
private String authorizerAccessToken; | ||
|
||
private String authorizerRefreshToken; | ||
|
||
private int expiresIn = -1; | ||
|
||
public static WxOpenAuthorizerAccessToken fromJson(String json) { | ||
return WxOpenGsonBuilder.create().fromJson(json, WxOpenAuthorizerAccessToken.class); | ||
} | ||
|
||
public String getAuthorizerAccessToken() { | ||
return authorizerAccessToken; | ||
} | ||
|
||
public void setAuthorizerAccessToken(String authorizerAccessToken) { | ||
this.authorizerAccessToken = authorizerAccessToken; | ||
} | ||
|
||
public int getExpiresIn() { | ||
return expiresIn; | ||
} | ||
|
||
public void setExpiresIn(int expiresIn) { | ||
this.expiresIn = expiresIn; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters