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));
  • 相关阅读:
    Codeforces1499D The Number of Pairs
    Codeforces1493D GCD of an Array
    AtCoder Beginner Contest 192 F
    Codeforces 1485F Copy or Prefix Sum
    Miller_Rabin
    Codeforces Round 655 (Div. 2) E
    Codeforces Round 655 (Div. 2) D
    B
    A
    待更新笔记
  • 原文地址:https://www.cnblogs.com/shaoing/p/8920021.html
Copyright © 2011-2022 走看看