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));