From da5067bcb2eb784dc36f827a4d1690d6d6c1863f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E6=99=B6?= Date: Mon, 9 Oct 2023 02:02:37 -0500 Subject: [PATCH] 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 --- work/externalcontact/external_user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/work/externalcontact/external_user.go b/work/externalcontact/external_user.go index b8a4bd19c..c41e5865b 100644 --- a/work/externalcontact/external_user.go +++ b/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 获取外部联系人详情