Skip to content

Commit b279308

Browse files
authored
Merge pull request #494 from ArtisanCloud/develop
Develop
2 parents 37cb2f4 + ec83913 commit b279308

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/work/oa/client.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func (comp *Client) CreateApproval(ctx context.Context, data *power.HashMap) (*r
195195

196196
// 批量获取审批单号
197197
// https://developer.work.weixin.qq.com/document/path/91816
198-
func (comp *Client) GetApprovalInfo(ctx context.Context, startTime int, endTime int, nextCursor int, size int, filters []*object.HashMap) (*response.ResponseApprovalNoList, error) {
198+
func (comp *Client) GetApprovalInfo(ctx context.Context, startTime int, endTime int, nextCursor string, size int, filters []*object.HashMap) (*response.ResponseApprovalNoList, error) {
199199

200200
result := &response.ResponseApprovalNoList{}
201201

@@ -204,11 +204,11 @@ func (comp *Client) GetApprovalInfo(ctx context.Context, startTime int, endTime
204204
}
205205

206206
options := &object.HashMap{
207-
"starttime": fmt.Sprintf("%d", startTime),
208-
"endtime": fmt.Sprintf("%d", endTime),
209-
"cursor": fmt.Sprintf("%d", nextCursor),
210-
"size": size,
211-
"filters": filters,
207+
"starttime": fmt.Sprintf("%d", startTime),
208+
"endtime": fmt.Sprintf("%d", endTime),
209+
"new_cursor": nextCursor,
210+
"size": size,
211+
"filters": filters,
212212
}
213213

214214
_, err := comp.BaseClient.HttpPostJson(ctx, "cgi-bin/oa/getapprovalinfo", options, nil, nil, result)

0 commit comments

Comments
 (0)