Преглед изворни кода

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 获取外部联系人详情