File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ type CustomerSchema struct {
2121 NickName string `json:"nickname"` // 微信昵称
2222 Avatar string `json:"avatar"` // 微信头像。第三方不可获取
2323 Gender int `json:"gender"` // 性别
24- UnionID string `json:"unionid"` // unionid,需要绑定微信开发者帐号才能获取到,查看绑定方法: https://open.work.weixin.qq.com/kf/doc/92512/93143/94769#%E5%A6%82%E4%BD%95%E8%8E%B7%E5%8F%96%E5%BE%AE%E4%BF%A1%E5%AE%A2%E6%88%B7%E7%9A%84unionid
24+ UnionID string `json:"unionid"` // unionid,需要绑定微信开发者帐号才能获取到,查看绑定方法: https://open.work.weixin.qq.com/kf/doc/92512/93143/94769#%E5%A6%82%E4%BD%95%E8%8E%B7%E5%8F%96%E5%BE%AE%E4%BF%A1%E5%AE%A2%E6%88%B7%E7%9A%84unionid
2525}
2626
2727// CustomerBatchGetSchema 获取客户基本信息响应内容
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ const (
1717 SDKUnknownError Error = "未知错误"
1818 // SDKInvalidCredential 错误码:40001
1919 SDKInvalidCredential Error = "不合法的secret参数"
20+ // SDKInvalidCorpID 错误码:40013
21+ SDKInvalidCorpID Error = "无效的 CorpID"
2022 // SDKAccessTokenInvalid 错误码:40014
2123 SDKAccessTokenInvalid Error = "AccessToken 无效"
2224 // SDKAccessTokenExpired 错误码:42001
@@ -41,6 +43,8 @@ func NewSDKErr(code int, msgList ...string) Error {
4143 return SDKInvalidCredential
4244 case 42001 :
4345 return SDKAccessTokenExpired
46+ case 40013 :
47+ return SDKInvalidCorpID
4448 case 40014 :
4549 return SDKAccessTokenInvalid
4650 case 95011 :
You can’t perform that action at this time.
0 commit comments