xingzai 1 anno fa
parent
commit
b808572253
2 ha cambiato i file con 5 aggiunte e 4 eliminazioni
  1. 4 3
      services/cygx/cygx_questionnaire.go
  2. 1 1
      utils/constants.go

+ 4 - 3
services/cygx/cygx_questionnaire.go

@@ -61,6 +61,7 @@ func SendWxMsgCygxQuestionnaire(questionnaireId int) (err error) {
 	for _, v := range userList {
 		mobile = append(mobile, v.Mobile)
 	}
+
 	//获取用户对应的Openid
 	openIdList, e := cygx.GetUserRecordListByMobileArr(mobile)
 	if e != nil {
@@ -93,9 +94,9 @@ func SendWxMsgCygxQuestionnaire(questionnaireId int) (err error) {
 	sendInfo.Resource = strconv.Itoa(questionnaireId)
 	sendInfo.SendType = utils.TEMPLATE_MSG_CYGX_ARTICLE_ADD
 	sendInfo.OpenIdArr = openIdArr
-
-	err = services.SendTemplateMsg(sendInfo)
-	if err != nil {
+	e = services.SendTemplateMsg(sendInfo)
+	if e != nil {
+		err = errors.New("SendTemplateMsg, Err: " + e.Error())
 		return
 	}
 	return

+ 1 - 1
utils/constants.go

@@ -465,7 +465,7 @@ const (
 	WX_MSG_PATH_YX_SPECIAL_DETAIL               = "pages-purchaser/noteAndViewpoint/noteAndViewpoint?id="         //研选专栏详情
 	WX_MSG_PATH_YX_SPECIAL_ENABLE_DETAIL        = "pages-purchaser/toExamine/toExamine?id="                       //研选专栏审核详情页面
 	WX_MSG_PATH_YX_SPECIAL_CENTER               = "pages-purchaser/contentAllPage/contentAllPage?Status=4"        //研选专栏内容中心
-	WX_MSG_PATH_QUESTIONNAIRE_DETAIL            = ""                                                              //问卷调查详情页
+	WX_MSG_PATH_QUESTIONNAIRE_DETAIL            = "pages-purchaser/themeVote/themeVote?id="                       //问卷调查详情页
 )
 
 // 图表类型