Skip to content

Commit

Permalink
feat(grouping): Add grouping Function
Browse files Browse the repository at this point in the history
  • Loading branch information
lei3265018 committed Nov 29, 2018
1 parent f7f921e commit 346d4da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
- [ ] 发送客服消息(文本、图片、语音、视频、音乐、图文)
- [x] 菜单操作(查询、创建、删除、个性化菜单)
- [ ] 二维码(创建临时、永久二维码,查看二维码URL)
- [ ] 分组操作(查询、创建、修改、移动用户到分组
- [x] 分组操作(查询、创建、修改、批量移动用户到分组, 批量从分组移除用户
- [ ] 用户信息(查询用户基本信息、获取关注者列表)
- [ ] 媒体文件(上传、获取)
- [ ] 群发消息(文本、图片、语音、视频、图文)
Expand Down
14 changes: 0 additions & 14 deletions src/modules/grouping/wechat.grouping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,20 +89,6 @@ export class WechatGrouping {
return { code: 200, message: '删除用户标签成功!'};
}

// 此方法暂时有一个问题,过后解决 get传 json参数bug
// async queryUserLabelFans(appid: string, parameter: any) {
// if (!appid) {
// throw new HttpException('appid不存在!!', 500);
// }
// const accessToken: string = await this.wechatUtil.ensureAccessToken(appid);
// const url = `https://api.weixin.qq.com/cgi-bin/tags/get?access_token=${accessToken}`;
// const { data } = await this.httpService.get(url).toPromise();
// if (data.errcode) {
// throw new HttpException(data.errmsg, data.errcode);
// }
// return { code: 200, message: '查询菜单成功!', data};
// }

/**
* 批量为用户打标签,标签功能目前支持公众号为用户打上最多20个标签。
* parameter 格式:{"openid_list" : [//粉丝列表 "ocYxcuAEy30bX0NXmGn4ypqx3tI0", "ocYxcuBt0mRugKZ7tGAHPnUaOW7Y" ], "tagid" : 134 }
Expand Down

0 comments on commit 346d4da

Please sign in to comment.