Package io.github.caijiang.common.wechat
Class WechatHelper
-
- All Implemented Interfaces:
public final class WechatHelperCJ
-
-
Constructor Summary
Constructors Constructor Description WechatHelper(TokenCacheService tokenCacheService)
-
Method Summary
Modifier and Type Method Description final ExpiredTokenqueryStableAccessToken(AppIdAndSecret account)https://developers.weixin.qq.com/doc/offiaccount/Basic_Information/getStableAccessToken. final JavascriptSignaturejavascriptSignature(AppIdAndSecret account, String url)https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK. -
-
Constructor Detail
-
WechatHelper
WechatHelper(TokenCacheService tokenCacheService)
-
-
Method Detail
-
queryStableAccessToken
final ExpiredToken queryStableAccessToken(AppIdAndSecret account)
https://developers.weixin.qq.com/doc/offiaccount/Basic_Information/getStableAccessToken.html
- Returns:
accessToken
-
javascriptSignature
final JavascriptSignature javascriptSignature(AppIdAndSecret account, String url)
https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#62
- Parameters:
url- 当前网页的URL,不包含#及其后面部分
-
-
-
-