This commit is contained in:
邹宗楠
2024-09-19 16:48:36 +08:00
parent 7bcbcf7be8
commit 59bb3026b7
2 changed files with 12 additions and 8 deletions

View File

@@ -14,6 +14,7 @@ import (
"git.rosy.net.cn/jx-callback/business/jxutils/tasksch"
"git.rosy.net.cn/jx-callback/business/model"
"git.rosy.net.cn/jx-callback/business/partner"
"git.rosy.net.cn/jx-callback/globals"
"git.rosy.net.cn/jx-callback/globals/api"
"github.com/astaxie/beego/server/web"
"strings"
@@ -254,10 +255,13 @@ func (c *BiddingController) DownSupermarketSign() {
keyPart = append(keyPart, time.Now().Format("20060102T150405")+".xlsx")
key := "export/" + strings.Join(keyPart, "_")
excelURL, err2 := jxutils.UploadExportContent(excelBin, key)
globals.SugarLogger.Debugf("-----------excelURL-:%s", excelURL)
globals.SugarLogger.Debugf("-----------err-:%v", err)
if err = err2; err == nil {
//task.SetNoticeMsg(excelURL)
if authInfo, err := params.Ctx.GetV2AuthInfo(); err == nil {
noticeMsg := fmt.Sprintf("path=%s\n", excelURL)
globals.SugarLogger.Debugf("----------noticeMsg--:%s", noticeMsg)
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, authInfo.UserID, "导出签约门店数据", noticeMsg)
}
}