修改发送消息

This commit is contained in:
807875765@qq.com
2022-03-14 14:14:27 +08:00
parent 8caf66eb8a
commit cb72473532

View File

@@ -3007,14 +3007,14 @@ creatExec:
}
sheetList = append(sheetList, excelConf)
if excelConf != nil {
downloadURL, fileName, err = jxutils.UploadExeclAndPushMsg(sheetList, "比较差异")
downloadURL, fileName, err = jxutils.UploadExeclAndPushMsg(sheetList, strconv.Itoa(storeID)+"diff")
} else {
baseapi.SugarLogger.Debug("WriteToExcel: dataSuccess is nil!")
}
if err != nil {
baseapi.SugarLogger.Errorf("WriteToExcel:upload %s , %s failed error:%v", fileName, err)
} else {
noticeMsg := fmt.Sprintf("[详情点我]%s/billshow/?normal=true&path=%s \n", globals.BackstageHost, downloadURL)
noticeMsg := fmt.Sprintf("[详情点我]%s%s ", globals.BackstageHost, downloadURL)
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, ctx.GetUserID(), "异步任务完成", noticeMsg)
baseapi.SugarLogger.Debug("WriteToExcel: dataSuccess downloadURL: [%v]", downloadURL)
}