Skip to content

Commit

Permalink
fix(work): fix json Unmarshal Error in GetExternalUserDetail api (#732)
Browse files Browse the repository at this point in the history
fix json Unmarshal Error, err=json: cannot unmarshal number into Go struct field
WechatChannel.follow_user.wechat_channels.source of type string
  • Loading branch information
Lumiaqian authored Oct 9, 2023
1 parent 8f10936 commit da5067b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion work/externalcontact/external_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ type Tag struct {
// WechatChannel 视频号添加的场景
type WechatChannel struct {
NickName string `json:"nickname"`
Source string `json:"source"`
Source int `json:"source"`
}

// GetExternalUserDetail 获取外部联系人详情
Expand Down

0 comments on commit da5067b

Please sign in to comment.