zoukankan      html  css  js  c++  java
  • 微信 模板消息

    POST请求
    
    https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=ACCESS_TOKEN

    IT行业订单支付成功模板ID:PZUlx0thAMs_jyL2b0-FsF9iffxyqhqPdQiiDznNVmc

        $tmpMsg['touser'] = 'oFOOH1Ze8CuqEIsvc2r72nfeP1lU';
        $tmpMsg['template_id'] = 'PZUlx0thAMs_jyL2b0-FsF9iffxyqhqPdQiiDznNVmc';
        $tmpMsg['url'] = $url;
        $tmpMsg['topcolor'] = "#FF0000";
        $tmpMsg['data']['first']['value'] = "我们已收到您的付款,准备为您服务1";
        $tmpMsg['data']['orderMoneySum']['value']  = "100";
        $tmpMsg['data']['orderProductName']['value']  = "我们已收到您的付款,准备为您服务2";
        $tmpMsg['data']['Remark']['value']  = "我们已收到您的付款,准备为您服务3";
        $tmpUrl = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=".getAccessToken();
        https_request($tmpUrl,json_encode($tmpMsg));
  • 相关阅读:
    MyString
    Django疑难问题
    mysql 疑难问题-django
    python时间转换 ticks-FYI
    django建议入门-FYI
    Python风格规范-FYI
    scrum敏捷开发☞
    git基本命令
    centos下的安装mysql,jdk
    memcached for .net on windows
  • 原文地址:https://www.cnblogs.com/shaoing/p/8920021.html
Copyright © 2011-2022 走看看