Explorar o código

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
曹晶 %!s(int64=2) %!d(string=hai) anos
pai
achega
da5067bcb2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 获取外部联系人详情