httpclient bug fixed
This commit is contained in:
parent
34698d469b
commit
01fab155f8
@ -1005,8 +1005,8 @@ public class WeixinProxy {
|
||||
* 删除群发</a>
|
||||
* @see com.foxinmy.weixin4j.mp.api.MassApi
|
||||
* @see {@link #massByGroupId(Tuple, int)}
|
||||
* @see {@link #massByOpenIds(Tuple, String...)
|
||||
|
||||
* @see {@link #massByOpenIds(Tuple, String...)
|
||||
*
|
||||
*
|
||||
*/
|
||||
public ApiResult deleteMassNews(String msgid) throws WeixinException {
|
||||
@ -1982,6 +1982,24 @@ public class WeixinProxy {
|
||||
return tagApi.getAllBalcklistOpenIds();
|
||||
}
|
||||
|
||||
/**
|
||||
* 黑名单操作
|
||||
*
|
||||
* @param blacklist
|
||||
* true=拉黑用户,false=取消拉黑用户
|
||||
* @param openIds
|
||||
* 用户ID列表
|
||||
* @return 操作结果
|
||||
* @see com.foxinmy.weixin4j.mp.api.TagApi
|
||||
* @see <a
|
||||
* href="https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1471422259_pJMWA&token=&lang=zh_CN">黑名单操作</a>
|
||||
* @throws WeixinException
|
||||
*/
|
||||
public ApiResult batchBlacklist(boolean blacklist, String... openIds)
|
||||
throws WeixinException {
|
||||
return tagApi.batchBlacklist(blacklist, openIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建卡券:创建卡券接口是微信卡券的基础接口,用于创建一类新的卡券,获取card_id,创建成功并通过审核后,
|
||||
* 商家可以通过文档提供的其他接口将卡券下发给用户,每次成功领取,库存数量相应扣除。
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
# weixin4j\u7684\u914d\u7f6e\u6587\u4ef6:\u5982\u679c\u6ca1\u6709\u8bf7\u6784\u9020\u76f8\u5e94\u53c2\u6570\u4f20\u5165 \u5982\u679c\u6709\u8bf7\u4fdd\u8bc1\u5728classpath\u7684\u6839\u76ee\u5f55\u4e0b
|
||||
|
||||
# \u516c\u4f17\u53f7\u4fe1\u606f \u8bf7\u6309\u9700\u586b\u5199
|
||||
weixin4j.account={"id":"wx5017c5f709116d6a","secret":"d4624c36b6795d1d99dcf0547af5443d",\
|
||||
weixin4j.account={"id":"wx4ab8f8de58159a57","secret":"1d4eb0f4bf556aaed539f30ed05ca795",\
|
||||
"components":[{"id":"\u5e94\u7528\u7ec4\u4ef6\u7684id","secret":"\u5e94\u7528\u7ec4\u4ef6\u7684secret"}],\
|
||||
"mchId":"\u5fae\u4fe1\u5546\u6237\u53f7 \u5fae\u4fe1\u652f\u4ed8\u65f6\u9700\u8981\u586b\u5165",\
|
||||
"certificateKey":"\u52a0\u8f7d\u652f\u4ed8\u8bc1\u4e66\u6587\u4ef6\u7684\u5bc6\u7801 \u5982\u679c\u4e0d\u586b\u5199\u5219\u9ed8\u8ba4\u83b7\u53d6mchId\u4f5c\u4e3a\u5bc6\u7801",\
|
||||
|
||||
@ -32,7 +32,7 @@ public class UserTest extends TokenTest {
|
||||
User user = userApi.getUser("owGBftyJWx21nqKlWpI3po5K_Q9o");
|
||||
Assert.assertNotNull(user);
|
||||
System.out.println(user);
|
||||
// following();
|
||||
following();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user