|
@@ -183,7 +183,7 @@ func SendNeiRongZuActivitieSignCategoryTemplateMsg(user *models.WxUserItem, acti
|
|
err = errors.New("GetConfigByCode, Err: " + e.Error() + configCode)
|
|
err = errors.New("GetConfigByCode, Err: " + e.Error() + configCode)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- openIdList, e := models.GetUserRecordListByMobile(4, cnf.ConfigValue+","+sellerItemQy.Mobile+","+utils.MobileShenTao)
|
|
|
|
|
|
+ openIdList, e := models.GetUserRecordListByMobile(12, cnf.ConfigValue+","+sellerItemQy.Mobile+","+utils.MobileShenTao)
|
|
if e != nil && e.Error() != utils.ErrNoRow() {
|
|
if e != nil && e.Error() != utils.ErrNoRow() {
|
|
err = errors.New("GetUserRecordListByMobile, Err: " + e.Error() + cnf.ConfigValue)
|
|
err = errors.New("GetUserRecordListByMobile, Err: " + e.Error() + cnf.ConfigValue)
|
|
return
|
|
return
|
|
@@ -237,7 +237,7 @@ func SendActivitieCancelSignCategoryTemplateMsg(user *models.WxUserItem, activit
|
|
err = errors.New("GetConfigByCode, Err: " + e.Error() + configCode)
|
|
err = errors.New("GetConfigByCode, Err: " + e.Error() + configCode)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- openIdList, e := models.GetUserRecordListByMobile(4, cnf.ConfigValue+","+sellerItemQy.Mobile+","+utils.MobileShenTao)
|
|
|
|
|
|
+ openIdList, e := models.GetUserRecordListByMobile(12, cnf.ConfigValue+","+sellerItemQy.Mobile+","+utils.MobileShenTao)
|
|
if e != nil && e.Error() != utils.ErrNoRow() {
|
|
if e != nil && e.Error() != utils.ErrNoRow() {
|
|
err = errors.New("GetUserRecordListByMobile, Err: " + e.Error() + cnf.ConfigValue)
|
|
err = errors.New("GetUserRecordListByMobile, Err: " + e.Error() + cnf.ConfigValue)
|
|
return
|
|
return
|
|
@@ -442,7 +442,7 @@ func SendReviewCategoryTemplateMsgAdmin(specialId int) (err error) {
|
|
}
|
|
}
|
|
}()
|
|
}()
|
|
//王芳、葛琳和沈涛
|
|
//王芳、葛琳和沈涛
|
|
- openIdList, e := models.GetUserRecordListByMobile(4, utils.WxMsgTemplateIdYXSpecialReview)
|
|
|
|
|
|
+ openIdList, e := models.GetUserRecordListByMobile(12, utils.WxMsgTemplateIdYXSpecialReview)
|
|
if e != nil && e.Error() != utils.ErrNoRow() {
|
|
if e != nil && e.Error() != utils.ErrNoRow() {
|
|
err = errors.New("GetUserRecordListByMobile, Err: " + e.Error())
|
|
err = errors.New("GetUserRecordListByMobile, Err: " + e.Error())
|
|
return err
|
|
return err
|
|
@@ -514,7 +514,7 @@ func SendWxCategoryMsgSpecialAuthor(specialId, status int) (err error) {
|
|
return err
|
|
return err
|
|
}
|
|
}
|
|
|
|
|
|
- openIdList, err := models.GetUserRecordListByMobile(4, user.Mobile)
|
|
|
|
|
|
+ openIdList, err := models.GetUserRecordListByMobile(12, user.Mobile)
|
|
if err != nil && err.Error() != utils.ErrNoRow() {
|
|
if err != nil && err.Error() != utils.ErrNoRow() {
|
|
return err
|
|
return err
|
|
}
|
|
}
|
|
@@ -822,7 +822,7 @@ func SendEmailFileForAskMsgResearch(cont context.Context) (err error) {
|
|
|
|
|
|
//给所属销售推送消息
|
|
//给所属销售推送消息
|
|
if sellerItem != nil && user != nil {
|
|
if sellerItem != nil && user != nil {
|
|
- openIpItem, _ := models.GetUserRecordByMobile(4, sellerItem.Mobile)
|
|
|
|
|
|
+ openIpItem, _ := models.GetUserRecordByMobile(12, sellerItem.Mobile)
|
|
openIdList := make([]*models.OpenIdList,0)
|
|
openIdList := make([]*models.OpenIdList,0)
|
|
openIdList = append(openIdList, openIpItem)
|
|
openIdList = append(openIdList, openIpItem)
|
|
SendWxCategoryMsgWithActivityAsk(user.CompanyName, user.RealName, sellerItem.RealName, time.Now().Format(utils.FormatDateTimeMinute2), v2.Content, openIdList, v2.AskId)
|
|
SendWxCategoryMsgWithActivityAsk(user.CompanyName, user.RealName, sellerItem.RealName, time.Now().Format(utils.FormatDateTimeMinute2), v2.Content, openIdList, v2.AskId)
|