Browse Source

用印已签回发送模版消息

xiexiaoyuan 2 years ago
parent
commit
f79b5e8fdc
2 changed files with 2 additions and 1 deletions
  1. 1 1
      services/wechat_send_msg.go
  2. 1 0
      utils/constants.go

+ 1 - 1
services/wechat_send_msg.go

@@ -476,7 +476,7 @@ func SendSealFinishedWxTemplateMsg(mobile string, companyName string, sealId int
 		// TODO 随手办公小程序的跳转地址
 		wxAppPath := fmt.Sprintf("pages-approve/seal/detail?SealId=%d", sealId)
 		sendMap["miniprogram"] = map[string]interface{}{"appid": utils.WxAppId2, "pagepath": wxAppPath}
-		err = sendTemplateMsg(sendUrl, sendMap, openIdList)
+		err = sendTemplateMsg(sendUrl, sendMap, openIdList, wxAppPath, utils.TEMPLATE_MSG_SEAL_FINISHED)
 	}
 	utils.FileLog.Info("send end")
 	return

+ 1 - 0
utils/constants.go

@@ -115,4 +115,5 @@ const (
 	TEMPLATE_MSG_CYGX_ACTIVITY_ADD                //查研观向小程序活动更新推送 12
 	TEMPLATE_MSG_CYGX_ARTICLE_ADD                 //查研观向报告更新推送  13
 	TEMPLATE_MSG_YB_PRICE_DRIVEN                  //研报价格驱动 14
+	TEMPLATE_MSG_SEAL_FINISHED                    //用印申请已迁回通知 15
 )