Skip to content

Commit

Permalink
fix: userid of the getUserById method (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
imswk committed Nov 15, 2021
1 parent 17329dd commit 0c37773
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/WxWorkMemberService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ export class WxWorkMemberService extends WxWorkServiceAuth {
}

// 通过ID获取用户 https://work.weixin.qq.com/api/doc/90000/90135/90196
async getUserById(id: number) {
async getUserById(userid: string) {
const result = await this.bin.get('/cgi-bin/user/get', {
access_token: await this.getToken(),
id,
userid,
})
return result as WxWork.User
}
Expand Down

0 comments on commit 0c37773

Please sign in to comment.