diff --git a/business/jxutils/msg/msg.go b/business/jxutils/msg/msg.go index dc6d861cc..e0e11e44d 100644 --- a/business/jxutils/msg/msg.go +++ b/business/jxutils/msg/msg.go @@ -21,7 +21,9 @@ func SendUserMessage(userID, title, content string) (err error) { if len(content) > dingdingapi.MaxWorkContentLen { content = content[:dingdingapi.MaxWorkContentLen-4] + "..." } - err = api.DingDingAPI.CorpAsyncSendSimple(auth.AuthID, content) + if globals.IsProductEnv() { + err = api.DingDingAPI.CorpAsyncSendSimple(auth.AuthID, content) + } break } }