Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: Min Min <[email protected]>
  • Loading branch information
jamsman94 committed Jun 7, 2024
1 parent 8b2884d commit 4fac149
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/tool/workwx/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ func (c *Client) ListDepartmentUsers(departmentID int) (*ListDepartmentUserResp,
}

func (c *Client) FindUserByPhone(phone int) (*FindUserByPhoneResp, error) {
if phone == 0 {
return nil, fmt.Errorf("phone cannot be 0")
}
url := fmt.Sprintf("%s/%s", c.Host, getUserIDByPhoneAPI)

accessToken, err := c.getAccessToken()
Expand Down

0 comments on commit 4fac149

Please sign in to comment.