|
@@ -71,7 +71,7 @@ func SendMfyxEmailFileForAskMsgResearch(cont context.Context) (err error) {
|
|
|
//var touser string
|
|
|
defer func() {
|
|
|
if err != nil {
|
|
|
- go utils.SendAlarmMsg("发送附件模版消息失败", 2)
|
|
|
+ go utils.SendAlarmMsg("发送附件模版消息失败:"+err.Error(), 2)
|
|
|
go utils.SendEmail("发送附件模版消息失败"+"【"+utils.APPNAME+"】"+time.Now().Format(utils.FormatDateTime), msg+";Err:"+err.Error(), utils.EmailSendToUsers)
|
|
|
}
|
|
|
if msg != "" {
|
|
@@ -122,7 +122,7 @@ func SendMfyxEmailFileForAskMsgResearch(cont context.Context) (err error) {
|
|
|
|
|
|
//给所属销售推送消息
|
|
|
if sellerItem != nil && user != nil {
|
|
|
- openIpItem, _ := models.GetUserRecordByMobile(4, sellerItem.Mobile)
|
|
|
+ openIpItem, _ := models.GetMfyxUserRecordByMobile(12, sellerItem.Mobile)
|
|
|
openIdList := make([]*models.OpenIdList,0)
|
|
|
openIdList = append(openIdList, openIpItem)
|
|
|
SendWxCategoryMsgWithActivityAsk(user.CompanyName, user.RealName, sellerItem.RealName, time.Now().Format(utils.FormatDateTimeMinute2), v2.Content, openIdList, v.ActivityId)
|
|
@@ -195,7 +195,7 @@ func SendMfyxActivityBeginMsg(cont context.Context) (err error) {
|
|
|
}
|
|
|
}()
|
|
|
endDate := time.Now().Add(+time.Minute * 60).Format(utils.FormatDateTime)
|
|
|
- listActivity, err := models.GetYxActivitySendMsgListAll(endDate)
|
|
|
+ listActivity, err := models.GetMfyxActivitySendMsgListAll(endDate)
|
|
|
fmt.Println(len(listActivity))
|
|
|
if err != nil {
|
|
|
fmt.Println("GetActivitySendMsgListAll Err:", err.Error())
|
|
@@ -253,7 +253,7 @@ func SendMfyxActivityBeginMsgMeeting(cont context.Context) (err error) {
|
|
|
//func SendActivityBeginMsgMeeting() (err error) {
|
|
|
defer func() {
|
|
|
if err != nil {
|
|
|
- go utils.SendAlarmMsg("15分钟会议消息提醒失败", 2)
|
|
|
+ go utils.SendAlarmMsg("15分钟会议消息提醒失败:"+err.Error(), 2)
|
|
|
fmt.Println("发送失败,Err:", err.Error())
|
|
|
}
|
|
|
}()
|
|
@@ -304,7 +304,7 @@ func SendMfyxActivityBeginMsgMeeting(cont context.Context) (err error) {
|
|
|
mobiles = append(mobiles, vSignup.Mobile)
|
|
|
}
|
|
|
//获取这些手机号对应的Openid
|
|
|
- listOpenid, e := models.GetUserRecordListByMobileArr(mobiles)
|
|
|
+ listOpenid, e := models.GetMfyxUserRecordListByMobileArr(mobiles)
|
|
|
if e != nil && e.Error() != utils.ErrNoRow() {
|
|
|
err = errors.New("GetUserRecordListByMobileArr, Err: " + e.Error())
|
|
|
return
|
|
@@ -371,7 +371,7 @@ func SendActivitieSignCategoryTemplateMsg(user *models.WxUserItem, activityDetai
|
|
|
keyword4 = utils.TruncateActivityNameString(activityDetail.ActivityName)
|
|
|
keyword5 = time.Now().Format(utils.FormatDateTimeMinute2)
|
|
|
|
|
|
- openIdList, e := models.GetWxOpenIdByMobileSliceList(mobiles)
|
|
|
+ openIdList, e := models.GetMfyxWxOpenIdByMobileSliceList(mobiles)
|
|
|
if e != nil {
|
|
|
err = errors.New("GetWxOpenIdByMobileList, Err: " + e.Error())
|
|
|
return
|