소스 검색

Merge branch 'temp_msg'

ziwen 2 년 전
부모
커밋
8e0b5267a0
3개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      models/wechat_send_msg.go
  2. 2 0
      services/wechat_send_msg.go
  3. 1 0
      utils/constants.go

+ 1 - 1
models/wechat_send_msg.go

@@ -213,7 +213,7 @@ type SendWxTemplate struct {
 	Keyword4       string   `description:"模板消息keyword4字段"`
 	TemplateId     string   `description:"模板id"`
 	RedirectUrl    string   `description:"跳转地址"`
-	RedirectTarget int      `description:"小程序跳转目标:1:弘则研报小程序,2:随手办公小程序"`
+	RedirectTarget int      `description:"小程序跳转目标:1:弘则研报小程序,2:随手办公小程序,3:查研观向"`
 	Resource       string   `description:"资源唯一标识"`
 	SendType       int      `description:"发送的消息类型:1:报告,2:指标更新提醒,3:审批通知,4:销售领取客户通知,5:活动取消通知,6活动更改时间通知,7:关注的作者发布报告通知,8:发送日报(周报、双周报、月报)模板消息,9:活动预约/报名时间通知"`
 	OpenIdArr      []string `description:"消息接收者openid"`

+ 2 - 0
services/wechat_send_msg.go

@@ -95,6 +95,8 @@ func SendWxTemplateMsg(sendInfo *models.SendWxTemplate) (err error) {
 				xcxAppId = utils.WxYbAppId
 			} else if sendInfo.RedirectTarget == 2 {
 				xcxAppId = utils.WxCrmAppId
+			} else if sendInfo.RedirectTarget == 3 {
+				xcxAppId = utils.WxCygxAppId
 			} else {
 				err = errors.New("无效的微信小程序跳转方式:RedirectTarget" + strconv.Itoa(sendInfo.RedirectTarget))
 			}

+ 1 - 0
utils/constants.go

@@ -40,4 +40,5 @@ const (
 const (
 	WxCrmAppId = `wx67b68e39913e511e` //随手办公
 	WxYbAppId  = `wxb059c872d79b9967` //弘则研报小程序
+	WxCygxAppId  = `wxcc32b61f96720d2f` //弘则研报小程序
 )