同步错误发送消息测试

This commit is contained in:
苏尹岚
2020-02-27 17:59:39 +08:00
parent 5f24d8f8c8
commit 44e8c4ec83

View File

@@ -660,8 +660,8 @@ func buildSetFinishHook(task tasksch.ITask, ctx *jxcontext.Context) {
}
if authInfo, err := ctx.GetV2AuthInfo(); err == nil {
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, authInfo.UserID, "同步错误返回", noticeMsg)
}else{
globals.SugarLogger.Debugf("同步错误发送钉钉消息失败, [%v]", err)
} else {
globals.SugarLogger.Debugf("同步错误发送钉钉消息失败, authinfo [%v] , [%v]", *authInfo, err)
}
}
// else {