Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:避免游标拼接异常导致取不到数据 #638

Merged
merged 1 commit into from Jan 3, 2023

Conversation

lilien1010
Copy link
Contributor

No description provided.

@@ -97,7 +97,7 @@ type WechatChannel struct {

// GetExternalUserDetail 获取外部联系人详情
// @see https://developer.work.weixin.qq.com/document/path/92114
func (r *Client) GetExternalUserDetail(externalUserID string, nextCursor ...string) (*ExternalUserDetailResponse, error) {
func (r *Client) GetExternalUserDetail(externalUserID string, nextCursor string) (*ExternalUserDetailResponse, error) {
Copy link
Collaborator

@houseme houseme Jan 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

应该加一个判断,有值就从传人的参数取, 默认值为空呗。
游标参数文档上不是强制性参数,是可以为空的。

@silenceper
Copy link
Owner

silenceper commented Jan 2, 2023

尽量兼容原有调用方式

@lilien1010 lilien1010 requested review from houseme and removed request for houseme January 2, 2023 12:43
@silenceper silenceper merged commit 04559ed into silenceper:v2 Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants