up
This commit is contained in:
parent
ac2b677026
commit
94d23dfeda
@ -126,16 +126,16 @@ public class OauthApi extends MpApi {
|
||||
/**
|
||||
* 验证access_token是否正确
|
||||
*
|
||||
* @param accessToken
|
||||
* @param oauthToken
|
||||
* 接口调用凭证
|
||||
* @param openId
|
||||
* 用户标识
|
||||
* @return 验证结果
|
||||
*/
|
||||
public boolean authAccessToken(String accessToken, String openId) {
|
||||
public boolean authAccessToken(String oauthToken, String openId) {
|
||||
String sns_auth_token_uri = getRequestUri("sns_auth_token_uri");
|
||||
try {
|
||||
weixinExecutor.get(String.format(sns_auth_token_uri, accessToken,
|
||||
weixinExecutor.get(String.format(sns_auth_token_uri, oauthToken,
|
||||
openId));
|
||||
return true;
|
||||
} catch (WeixinException e) {
|
||||
|
||||
@ -155,9 +155,9 @@ public class WeixinSuiteProxy {
|
||||
* href="http://qydev.weixin.qq.com/wiki/index.php?title=%E8%8E%B7%E5%8F%96%E7%99%BB%E5%BD%95%E4%BC%81%E4%B8%9A%E5%8F%B7%E5%AE%98%E7%BD%91%E7%9A%84url">获取登录企业号官网的url</a>
|
||||
* @throws WeixinException
|
||||
*/
|
||||
public String getLoingUrl(String corpId, LoginTargetType targetType,
|
||||
public String getLoginUrl(String corpId, LoginTargetType targetType,
|
||||
int agentId) throws WeixinException {
|
||||
return providerApi.getLoingUrl(corpId, targetType, agentId);
|
||||
return providerApi.getLoginUrl(corpId, targetType, agentId);
|
||||
}
|
||||
|
||||
public final static String VERSION = "1.6.6";
|
||||
|
||||
@ -25,7 +25,7 @@ public class OauthApi extends QyApi {
|
||||
/**
|
||||
* 企业号用户身份授权
|
||||
*
|
||||
* @see {@link OauthApi#getUserAuthorizeURL(String, String,String)}
|
||||
* @see {@link #getUserAuthorizeURL(String, String,String)}
|
||||
*
|
||||
* @return 请求授权的URL
|
||||
*/
|
||||
|
||||
@ -73,7 +73,7 @@ public class ProviderApi extends QyApi {
|
||||
* href="http://qydev.weixin.qq.com/wiki/index.php?title=%E8%8E%B7%E5%8F%96%E7%99%BB%E5%BD%95%E4%BC%81%E4%B8%9A%E5%8F%B7%E5%AE%98%E7%BD%91%E7%9A%84url">获取登录企业号官网的url</a>
|
||||
* @throws WeixinException
|
||||
*/
|
||||
public String getLoingUrl(String corpId, LoginTargetType targetType,
|
||||
public String getLoginUrl(String corpId, LoginTargetType targetType,
|
||||
int agentId) throws WeixinException {
|
||||
Token token = providerTokenHolder.getTokenStorager().lookup(
|
||||
getLoginTicketCacheKey(corpId));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user