hsun 1 year ago
parent
commit
602577bb33
1 changed files with 2 additions and 1 deletions
  1. 2 1
      services/maycur/maycur.go

+ 2 - 1
services/maycur/maycur.go

@@ -5,6 +5,7 @@ import (
 	"encoding/json"
 	"fmt"
 	"hongze/hongze_task/models"
+	"hongze/hongze_task/services/alarm_msg"
 	"hongze/hongze_task/utils"
 	"io/ioutil"
 	"net/http"
@@ -21,7 +22,7 @@ func DailyUpdateCompanyProfile(cont context.Context) (err error) {
 		if err != nil {
 			utils.FileLog.Info("DailyUpdateCompanyProfile ErrMsg: %s", err.Error())
 			// 出错的话hongze_admin那边有报错, 这边只要定时请求了就行...
-			//alarm_msg.SendAlarmMsg(fmt.Sprintf("每日更新客户档案失败, ErrMsg: %s", err.Error()), 3)
+			alarm_msg.SendAlarmMsg(fmt.Sprintf("每日更新客户档案失败, ErrMsg: %s", err.Error()), 2)
 		}
 	}()