浏览代码

fix(work): fix json Unmarshal Error in GetExternalUserDetail api (#732)

fix json Unmarshal Error, err=json: cannot unmarshal number into Go struct field
WechatChannel.follow_user.wechat_channels.source of type string
曹晶 2 年之前
父节点
当前提交
da5067bcb2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      work/externalcontact/external_user.go

+ 1 - 1
work/externalcontact/external_user.go

@@ -104,7 +104,7 @@ type Tag struct {
 // WechatChannel 视频号添加的场景
 type WechatChannel struct {
 	NickName string `json:"nickname"`
-	Source   string `json:"source"`
+	Source   int    `json:"source"`
 }
 
 // GetExternalUserDetail 获取外部联系人详情