|
@@ -436,8 +436,14 @@ func SendReportMiniToThs(reportId int) (err error) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+ // 获取研报小程序配置
|
|
|
+ ybConf, err := GetYbAppIdInfo()
|
|
|
+ if err != nil {
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
//小程序跳转地址
|
|
|
- jumpBaseUrl := utils.WxYbAppId + `/pages-report/reportDetail?reportId=`
|
|
|
+ jumpBaseUrl := ybConf.AppId + `/pages-report/reportDetail?reportId=`
|
|
|
jumpUrl := fmt.Sprint(jumpBaseUrl, report.Id)
|
|
|
logoUrl := `https://hongze.oss-cn-shanghai.aliyuncs.com/hzyj.png`
|
|
|
|
|
@@ -512,8 +518,15 @@ func SendYbPriceDrivenToThs(priceDrivenId int) (err error) {
|
|
|
if permissionName == "宏观经济" {
|
|
|
permissionName = "宏观"
|
|
|
}
|
|
|
+
|
|
|
+ // 获取研报小程序配置
|
|
|
+ ybConf, err := GetYbAppIdInfo()
|
|
|
+ if err != nil {
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
title := fmt.Sprintf("%s价格驱动", permissionName)
|
|
|
- jumpUrl := fmt.Sprintf(`%s/pages/pricedriven/pricedriven?default_classify_first=%d&default_classify_sub=%d`, utils.WxYbAppId, varietyTag.VarietyClassifyId, varietyTag.VarietyTagId)
|
|
|
+ jumpUrl := fmt.Sprintf(`%s/pages/pricedriven/pricedriven?default_classify_first=%d&default_classify_sub=%d`, ybConf.AppId, varietyTag.VarietyClassifyId, varietyTag.VarietyTagId)
|
|
|
logoUrl := `https://hongze.oss-cn-shanghai.aliyuncs.com/hzyj.png`
|
|
|
// 推送至同花顺
|
|
|
dataType := "2"
|
|
@@ -533,9 +546,16 @@ func SendYbCommunityVideoToThs(videoId int) (err error) {
|
|
|
err = errors.New("获取视频信息失败, Err:" + e.Error())
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+ // 获取研报小程序配置
|
|
|
+ ybConf, err := GetYbAppIdInfo()
|
|
|
+ if err != nil {
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
permissionName := "宏观" // 所有客群都推
|
|
|
title := video.Title
|
|
|
- jumpUrl := fmt.Sprint(utils.WxYbAppId+`/pages/video/videoList?videoId=`, videoId)
|
|
|
+ jumpUrl := fmt.Sprint(ybConf.AppId+`/pages/video/videoList?videoId=`, videoId)
|
|
|
logoUrl := `https://hongze.oss-cn-shanghai.aliyuncs.com/hzyj.png`
|
|
|
// 推送至同花顺
|
|
|
dataType := "2"
|
|
@@ -579,8 +599,15 @@ func SendYbRoadVideoToThs(videoId int) (err error) {
|
|
|
}
|
|
|
permissionName = strings.Trim(permissionName, ",")
|
|
|
//permissionName := "宏观" //写死宏观,默认所有群都推
|
|
|
+
|
|
|
+ // 获取研报小程序配置
|
|
|
+ ybConf, err := GetYbAppIdInfo()
|
|
|
+ if err != nil {
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
title := video.Title
|
|
|
- jumpUrl := fmt.Sprint(utils.WxYbAppId+`/pages/roadShow/video/list?videoId=`, videoId)
|
|
|
+ jumpUrl := fmt.Sprint(ybConf.AppId+`/pages/roadShow/video/list?videoId=`, videoId)
|
|
|
logoUrl := `https://hongze.oss-cn-shanghai.aliyuncs.com/hzyj.png`
|
|
|
// 推送至同花顺
|
|
|
dataType := "2"
|
|
@@ -600,9 +627,16 @@ func SendYbVoiceBroadcastToThs(voiceId int) (err error) {
|
|
|
err = errors.New("获取语音播报信息失败, Err:" + e.Error())
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+ // 获取研报小程序配置
|
|
|
+ ybConf, err := GetYbAppIdInfo()
|
|
|
+ if err != nil {
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
permissionName := "宏观" // 所有客群都推
|
|
|
title := voice.BroadcastName
|
|
|
- jumpUrl := fmt.Sprint(utils.WxYbAppId+`/pages-voice/voiceDetail?voiceId=`, voiceId)
|
|
|
+ jumpUrl := fmt.Sprint(ybConf.AppId+`/pages-voice/voiceDetail?voiceId=`, voiceId)
|
|
|
logoUrl := `https://hongze.oss-cn-shanghai.aliyuncs.com/hzyj.png`
|
|
|
// 推送至同花顺
|
|
|
dataType := "2"
|