|
@@ -2,6 +2,7 @@ package services
|
|
|
|
|
|
import (
|
|
|
"context"
|
|
|
+ "encoding/json"
|
|
|
"fmt"
|
|
|
"hongze/hongze_task/models/roadshow"
|
|
|
"hongze/hongze_task/utils"
|
|
@@ -10,6 +11,7 @@ import (
|
|
|
)
|
|
|
|
|
|
func SendCalendarResearcherQuestionTips(cont context.Context) (err error) {
|
|
|
+ utils.FileLog.Info("start SendCalendarResearcherQuestionTips")
|
|
|
endTime := time.Now().Add(-2 * time.Second).Format(utils.FormatDateTime)
|
|
|
list, err := roadshow.GetCalendarTesearcherQuestionTips(endTime)
|
|
|
if err != nil {
|
|
@@ -41,10 +43,13 @@ func SendCalendarResearcherQuestionTips(cont context.Context) (err error) {
|
|
|
utils.FileLog.Info("GetCalendarTesearcherQuestionTips SendTemplateMsgV2 Err:" + err.Error())
|
|
|
return
|
|
|
}
|
|
|
+ param, err := json.Marshal(sendInfo)
|
|
|
+ utils.FileLog.Info("SendTemplateMsgV2 success:" + string(param))
|
|
|
err = roadshow.ModifyRsCalendarResearcherQuestionMsgStatus(v.RsCalendarResearcherId)
|
|
|
if err != nil {
|
|
|
utils.FileLog.Info("ModifyRsCalendarResearcherQuestionMsgStatus Err:" + err.Error())
|
|
|
}
|
|
|
}
|
|
|
+ utils.FileLog.Info("end SendCalendarResearcherQuestionTips")
|
|
|
return
|
|
|
}
|