authsucc
This commit is contained in:
parent
2777b05005
commit
4115278b27
@ -28,7 +28,7 @@ import com.foxinmy.weixin4j.util.StringUtil;
|
|||||||
* @since JDK 1.6
|
* @since JDK 1.6
|
||||||
* @see
|
* @see
|
||||||
*/
|
*/
|
||||||
public class SimpleHttpClient extends AbstractHttpClient implements HttpClient {
|
public class SimpleHttpClient extends AbstractHttpClient {
|
||||||
|
|
||||||
private final HttpParams params;
|
private final HttpParams params;
|
||||||
|
|
||||||
|
|||||||
@ -108,9 +108,9 @@ public class WeixinRequestExecutor {
|
|||||||
public WeixinResponse get(String url, URLParameter... parameters)
|
public WeixinResponse get(String url, URLParameter... parameters)
|
||||||
throws WeixinException {
|
throws WeixinException {
|
||||||
// always contain the question mark
|
// always contain the question mark
|
||||||
StringBuilder buf = new StringBuilder(url).append("&");
|
StringBuilder buf = new StringBuilder(url);
|
||||||
if (parameters != null && parameters.length > 0) {
|
if (parameters != null && parameters.length > 0) {
|
||||||
buf.append(FormUrlEntity.formatParameters(Arrays.asList(parameters)));
|
buf.append("&").append(FormUrlEntity.formatParameters(Arrays.asList(parameters)));
|
||||||
}
|
}
|
||||||
HttpRequest request = new HttpRequest(HttpMethod.GET, buf.toString());
|
HttpRequest request = new HttpRequest(HttpMethod.GET, buf.toString());
|
||||||
return doRequest(request);
|
return doRequest(request);
|
||||||
|
|||||||
@ -72,7 +72,7 @@ public class Button implements Serializable {
|
|||||||
*/
|
*/
|
||||||
public Button(String name, Button... subButtons) {
|
public Button(String name, Button... subButtons) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.subs = Arrays.asList(subButtons);
|
this.subs = new ArrayList<Button>(Arrays.asList(subButtons));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -935,6 +935,22 @@ public class WeixinProxy {
|
|||||||
return userApi.inviteUser(userId, tips);
|
return userApi.inviteUser(userId, tips);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 开启二次验证成功时调用(管理员须拥有userid对应员工的管理权限)
|
||||||
|
*
|
||||||
|
* @param userid
|
||||||
|
* 成员ID
|
||||||
|
* @return 调用结果
|
||||||
|
* @see com.foxinmy.weixin4j.qy.api.UserApi
|
||||||
|
* @see <a href=
|
||||||
|
* "http://qydev.weixin.qq.com/wiki/index.php?title=%E5%85%B3%E6%B3%A8%E4%B8%8E%E5%8F%96%E6%B6%88%E5%85%B3%E6%B3%A8">
|
||||||
|
* 二次验证说明</a>
|
||||||
|
* @throws WeixinException
|
||||||
|
*/
|
||||||
|
public ApiResult authsucc(String userId) throws WeixinException {
|
||||||
|
return userApi.authsucc(userId);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建标签(创建的标签属于管理组;默认为未加锁状态)
|
* 创建标签(创建的标签属于管理组;默认为未加锁状态)
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user