xingzai 6 ماه پیش
والد
کامیت
03fa4381f6
1فایلهای تغییر یافته به همراه9 افزوده شده و 1 حذف شده
  1. 9 1
      services/wx_category_template_msg.go

+ 9 - 1
services/wx_category_template_msg.go

@@ -450,8 +450,16 @@ func SendReviewCategoryTemplateMsgAdmin(specialId int) (err error) {
 			go utils.SendAlarmMsg(fmt.Sprint("处理试用申请给王芳,汪洋发消息失败, specialId:", specialId, "ErrMsg", err.Error()), 2)
 		}
 	}()
+	var configCode string
+	//研选专栏修改之后给这些手机号推送审核模版消息
+	configCode = utils.TPL_MSG_YAN_XUAN_SPECIAL_APPROVAL
+	cnf, e := models.GetConfigByCode(configCode)
+	if e != nil {
+		err = errors.New("GetConfigByCode, Err: " + e.Error() + configCode)
+		return
+	}
 	//王芳、葛琳和沈涛
-	openIdList, e := models.GetMfyxWxOpenIdByMobileList(utils.WxMsgTemplateIdAskMsgMobilePublic + "," + utils.RAI_MOBILE_GE_LIN)
+	openIdList, e := models.GetMfyxWxOpenIdByMobileList(cnf.ConfigValue)
 	if e != nil && e.Error() != utils.ErrNoRow() {
 		err = errors.New("GetUserRecordListByMobile, Err: " + e.Error())
 		return err