|
@@ -420,7 +420,8 @@ func (this *WechatCommonController) Notify() {
|
|
|
if err != nil {
|
|
|
utils.FileLog.Info("xml.Unmarshal:" + err.Error())
|
|
|
}
|
|
|
- contactMsg := "感谢关注弘则研究。\r\n公司地址:上海市世纪大道210号21世纪中心大厦12层1206室\r\n\r\n业务合作:\r\n电话:86-21-61645300\r\n邮箱:service@hzinsights.com\r\n邮编:200120\r\n\r\n海外业务:\r\n邮箱:yyu@hzinsights.com "
|
|
|
+ //contactMsg := "感谢关注弘则研究。\r\n公司地址:上海市世纪大道210号21世纪中心大厦12层1206室\r\n\r\n业务合作:\r\n电话:86-21-61645300\r\n邮箱:service@hzinsights.com\r\n邮编:200120\r\n\r\n海外业务:\r\n邮箱:yyu@hzinsights.com "
|
|
|
+ contactMsg := "您好,消息已经收到,后台在看到私信后将及时回复您。\r\n也可以在公众号菜单栏【关于我们】界面联系弘则小助手。"
|
|
|
|
|
|
var openId, returnResult string
|
|
|
if item.MsgType != "" {
|
|
@@ -441,6 +442,8 @@ func (this *WechatCommonController) Notify() {
|
|
|
case "subscribe":
|
|
|
fmt.Println("关注")
|
|
|
go subscribe(openId)
|
|
|
+ textMsg := "感谢您关注弘则研究。\r\n作为中国资本市场的独立研究机构,今年是我们运用投研经验,服务全球投资者的第10年。\r\n眼下波动加剧、信息噪音激增,但弘则与你同行,我们希望运用自己在数据洪流与预期纠偏中反复训练而来的系统性智慧,让研究价值不止于验证过往,更能指引未来。\r\n\n市场合作、业务咨询,请在公众号菜单栏【关于我们】界面联系弘则小助手。"
|
|
|
+ xmlTpl = fmt.Sprintf(xmlTpl, openId, utils.WxId, createTime, textMsg)
|
|
|
|
|
|
break
|
|
|
case "unsubscribe":
|
|
@@ -448,7 +451,24 @@ func (this *WechatCommonController) Notify() {
|
|
|
go models.UserSubscribe(0, openId)
|
|
|
break
|
|
|
case "CLICK":
|
|
|
- returnResult = xmlTpl
|
|
|
+ switch item.EventKey {
|
|
|
+ case `contact`:
|
|
|
+ imgXmlTpl := `<xml>
|
|
|
+ <ToUserName><![CDATA[%s]]></ToUserName>
|
|
|
+ <FromUserName><![CDATA[%s]]></FromUserName>
|
|
|
+ <CreateTime>%s</CreateTime>
|
|
|
+ <MsgType><![CDATA[img]]></MsgType>
|
|
|
+ <Content><![CDATA[%s]]></Content>
|
|
|
+ </xml>`
|
|
|
+ etaHelperImg := `9BdElil_491Cghjq24Sk_UFmBN4UUcZVLLGzCIcIOQpnH2j5gI88UxIRm_WdTzNy`
|
|
|
+ xmlTpl = fmt.Sprintf(imgXmlTpl, openId, utils.WxId, createTime, etaHelperImg)
|
|
|
+ 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)
|
|
|
+ default:
|
|
|
+ returnResult = xmlTpl
|
|
|
+ }
|
|
|
break
|
|
|
default:
|
|
|
utils.FileLog.Info("wechat notify event:" + item.Event)
|