mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-05-04 04:37:46 +08:00
二次验证支持
This commit is contained in:
parent
471b4a7a51
commit
40430a7874
@ -28,7 +28,16 @@ public interface WxCpService {
|
||||
* @return
|
||||
*/
|
||||
public boolean checkSignature(String msgSignature, String timestamp, String nonce, String data);
|
||||
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 用在二次验证的时候
|
||||
* 企业在员工验证成功后,调用本方法告诉企业号平台该员工关注成功。
|
||||
* </pre>
|
||||
* @param userId
|
||||
*/
|
||||
public void userAuthenticated(String userId) throws WxErrorException;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 获取access_token,本方法线程安全
|
||||
|
@ -60,6 +60,10 @@ public class WxCpServiceImpl implements WxCpService {
|
||||
}
|
||||
}
|
||||
|
||||
public void userAuthenticated(String userId) throws WxErrorException {
|
||||
String url = "https://qyapi.weixin.qq.com/cgi-bin/user/authsucc?userid=" + userId;
|
||||
execute(new SimpleGetRequestExecutor(), url, null);
|
||||
}
|
||||
|
||||
public void accessTokenRefresh() throws WxErrorException {
|
||||
if (!GLOBAL_ACCESS_TOKEN_REFRESH_FLAG.getAndSet(true)) {
|
||||
|
Loading…
Reference in New Issue
Block a user