Skip to content

Commit

Permalink
feat: 对外暴露 SDKNotUseInWeCom 错误
Browse files Browse the repository at this point in the history
如果SDK输出当前错误,则用户在企业微信后台关闭了微信客服功能,需引导用户重新开启该功能
  • Loading branch information
NICEXAI committed Sep 3, 2021
1 parent 2cfbb30 commit 917d61a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions error.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ const (
SDKOpenKFIDNotExist Error = "open_kfid 不存在"
// SDKWeWorkAlready 错误码:95011
SDKWeWorkAlready Error = "已在企业微信使用微信客服"
// SDKNotUseInWeCom 错误码:95012
SDKNotUseInWeCom Error = "未在企业微信使用微信客服"
// SDKApiNotOpen 错误码:95017
SDKApiNotOpen Error = "API 功能没有被开启"
)
Expand Down Expand Up @@ -79,6 +81,8 @@ func NewSDKErr(code int, msgList ...string) Error {
return SDKOpenKFIDNotExist
case 95011:
return SDKWeWorkAlready
case 95012:
return SDKNotUseInWeCom
case 95017:
return SDKApiNotOpen
default:
Expand Down

0 comments on commit 917d61a

Please sign in to comment.