zwxi 10 月之前
父節點
當前提交
f180544ec3
共有 2 個文件被更改,包括 5 次插入10 次删除
  1. 3 10
      services/wx_category_template_msg.go
  2. 2 0
      utils/config.go

+ 3 - 10
services/wx_category_template_msg.go

@@ -437,17 +437,10 @@ func SendReviewCategoryTemplateMsgAdmin(specialId int) (err error) {
 			go utils.SendAlarmMsg(fmt.Sprint("处理试用申请给王芳,汪洋发消息失败, specialId:", specialId, "ErrMsg", err.Error()), 2)
 		}
 	}()
-	var configCode string
-	//如果是研选的就推送给汪洋跟王芳,否则就推送给王芳
-	configCode = utils.TPL_MSG_WANG_FANG_WANG_YANG
-	cnf, e := models.GetConfigByCode(configCode)
-	if e != nil {
-		err = errors.New("GetConfigByCode, Err: " + e.Error() + configCode)
-		return
-	}
-	openIdList, e := models.GetUserRecordListByMobile(4, cnf.ConfigValue)
+	//王芳、葛琳和沈涛
+	openIdList, e := models.GetUserRecordListByMobile(4, utils.WxMsgTemplateIdYXSpecialReview)
 	if e != nil && e.Error() != utils.ErrNoRow() {
-		err = errors.New("GetUserRecordListByMobile, Err: " + e.Error() + cnf.ConfigValue)
+		err = errors.New("GetUserRecordListByMobile, Err: " + e.Error())
 		return err
 	}
 	specialItem, e := models.GetYanxuanSpecialItemById(specialId)

+ 2 - 0
utils/config.go

@@ -41,6 +41,7 @@ var (
 	WxMsgTemplateIdAskMsgMobile              string //手机号用户【XXX】发送模板消息
 	WxMsgTemplateIdAskMsgMobileAll           string //手机号用户【XXX】发送模板消rm --
 	WxMsgTemplateIdAskMsgMobilePublic        string //手机号用户【XXX】发送模板消rm --
+	WxMsgTemplateIdYXSpecialReview           string //王芳、葛琳和沈涛--
 	TemplateIdByProductXzs                   string //产品运行报告通知-模板ID(小助手)
 	WxMsgTemplateIdArticleUserRemind         string //用户阅读报告通知-模板ID
 	WxMsgCategoryTemplateIdArticleUserRemind string //用户阅读报告通知-类目模板ID
@@ -157,6 +158,7 @@ func init() {
 	YanxViewpointPermissionId = 1002   //研选观点分类ID
 	WxMsgTemplateIdAskMsgMobileAll = "15557270714,18767183922,18621268829,17758061174"
 	WxMsgTemplateIdAskMsgMobilePublic = "15557270714,18767183922,18621268829,17758061174,18258485832,15000123056,15216736473,18701809782" // 沈涛:18767183922、 王芳:18621268829、葛琳18258485832、高亦文15000123056、董衡15216736473、吴昂迪和沈涛
+	WxMsgTemplateIdYXSpecialReview = "18621268829,18258485832,18767183922,"                                                               // 王芳、葛琳和沈涛
 	HtgjDefaultSaleName = "王芳"
 	HtgjSalt = "HTGJ&HZ"
 	HtgjName = "海通国际"