Roc 2 天之前
父節點
當前提交
6728c1482c
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      controllers/wechat.go

+ 8 - 1
controllers/wechat.go

@@ -427,6 +427,13 @@ func (this *WechatCommonController) Notify() {
 		if item.MsgType != "" {
 			openId = item.FromUserName
 		}
+		tmpXmlTpl := `<xml>
+		<ToUserName><![CDATA[%s]]></ToUserName>
+		<FromUserName><![CDATA[%s]]></FromUserName>
+		<CreateTime>%s</CreateTime>
+		<MsgType><![CDATA[text]]></MsgType>
+		<Content><![CDATA[%s]]></Content>
+		</xml>`
 		xmlTpl := `<xml>
 		<ToUserName><![CDATA[%s]]></ToUserName>
 		<FromUserName><![CDATA[%s]]></FromUserName>
@@ -465,7 +472,7 @@ func (this *WechatCommonController) Notify() {
 				case `more_eta`:
 					moreEtaMsg := "ETA智能投研平台,是弘则基于10年业内领先研究智慧训练开发的新一代投研引擎,将顶尖投研方法论深度融入平台体系,让用户在使用中自然提升专业分析能力,赋能全品类、跨场景的开创性研究。\r\n平台集成全端数据采集、多维指标图表、0代码量化分析、AI价格预测与大模型知识库,灵活输出报告及PPT,沉淀智力资产。\r\n通过ETA,可快速构建企业投研能力壁垒,以高效汇聚市场共识为起点,前瞻性洞察市场变化,构建投研一体的决策闭环。\r\n查看文章了解详情:点击查看【https://mp.weixin.qq.com/s/UVYXGb_h9CzC3X-cp6T8OQ】"
 
-					xmlTpl = fmt.Sprintf(xmlTpl, openId, utils.WxId, createTime, moreEtaMsg)
+					xmlTpl = fmt.Sprintf(tmpXmlTpl, openId, utils.WxId, createTime, moreEtaMsg)
 				default:
 					returnResult = xmlTpl
 				}