收藏
回答

微信公众平台测试号不能发送类目模板消息?

AppID
wxd91b0b9443bdedb9

如图 在调用

https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=79_wRgg4JOrTDpWPEBs1rTNFw6Nm_bCt-6CG1D5vx6-EUqQ3nLBsLf0A6rDuhKrF3c9dTF-8Yxoewlnzd1wZGP2Utr4o5bgIY0KyedebhUHhwAA2ARFE3Wc8lJ9SwkUWNjABAOQH
时  历史模板消息格式 

{"touser":"oNw8f698ZaCGtYJ2wHUjEsE1XlVM","template_id":"sn-ZpD1xMHwDLp0GVKLDUdLjyUJoxgTvGufVlVgwjiU","url":"http://vm.rongzhidui.com/fws/match?company_name=%E5%8C%97%E4%BA%AC%E5%B0%8F%E5%BE%AE%E4%B9%8B%E6%98%A5%E7%A7%91%E6%8A%80%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8%0D%0A","data":{"keyword1":{"value":"王五"}},"page":"index"}

发送的消息 变量能够被替换,  而 类目模板消息
{"touser":"oNw8f698ZaCGtYJ2wHUjEsE1XlVM","template_id":"dgKmTebMfi9SW5KpAVxdeFFMmnNVYXf5R9lgC8h3HLM","url":"http://vm.rongzhidui.com/fws/match?company_name=%E5%8C%97%E4%BA%AC%E5%B0%8F%E5%BE%AE%E4%B9%8B%E6%98%A5%E7%A7%91%E6%8A%80%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8%0D%0A","data":{"thing4":{"value":"王五"},"const2":{"value":"采集成功"}},"page":"index"}

里面的变量却不能被替换
回答关注问题邀请回答
收藏

1 个回答

  • Hlxuan.
    Hlxuan.
    04-11

    按照下面这个格式重新创建模板,再下发试试:

    来源:{{thing4.DATA}}
    收取状态:{{const2.DATA}}
    

    04-11
    有用 1
    回复 1
登录 后发表内容
问题标签