mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-23 13:42:25 +08:00
Compare commits
1 Commits
38122d3cc6
...
57a18325af
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
57a18325af |
@@ -125,9 +125,11 @@ func (r *Client) DepartmentListByID(departmentID int) ([]*Department, error) {
|
||||
}
|
||||
|
||||
if departmentID > 0 {
|
||||
formatURL = fmt.Sprintf(departmentListByIDURL, accessToken, departmentID)
|
||||
formatURL =
|
||||
fmt.Sprintf(departmentListByIDURL, accessToken, departmentID)
|
||||
} else {
|
||||
formatURL = fmt.Sprintf(departmentListURL, accessToken)
|
||||
formatURL =
|
||||
fmt.Sprintf(departmentListURL, accessToken)
|
||||
}
|
||||
|
||||
// 发起http请求
|
||||
|
||||
Reference in New Issue
Block a user