<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[gunchen1487的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/gunchen1487</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; gunchen1487]]></copyright><item><title><![CDATA[PHP实现微信支付(微信小程序版)]]></title><link>https://blog.youkuaiyun.com/gunchen1487/article/details/82940769</link><guid>https://blog.youkuaiyun.com/gunchen1487/article/details/82940769</guid><author>gunchen1487</author><pubDate>Thu, 04 Oct 2018 21:46:09 +0800</pubDate><description><![CDATA[先解答上一篇博客中form_id的获取方法:
js代码

Page({
  formSubmit: function (e) {
    console.log(&quot;formid:&quot;+e.detail.formId)
  },
})

wxml代码
&amp;lt;form bindsubmit=&quot;formSubmit&quot; report-submit=&quot;ture&quot;&amp;gt;
    &amp;lt;button for...]]></description><category></category></item><item><title><![CDATA[PHP实现模板消息推送(微信小程序版)]]></title><link>https://blog.youkuaiyun.com/gunchen1487/article/details/82935159</link><guid>https://blog.youkuaiyun.com/gunchen1487/article/details/82935159</guid><author>gunchen1487</author><pubDate>Thu, 04 Oct 2018 00:26:00 +0800</pubDate><description><![CDATA[以下为开发步骤

获取用户的openid
获取form_id或者prepay_id
获取access_token
发送模板消息

重要提示
此方法为利用PHP内置curl模块发送请求，开发中都是以此方法访问微信服务器获取数据，其中url为接口地址，params为携带参数，ispost为请求方式，https为证书校验
 public static function curl($url, $param...]]></description><category></category></item><item><title><![CDATA[PHP实现发送模板消息（微信公众号版）]]></title><link>https://blog.youkuaiyun.com/gunchen1487/article/details/82929418</link><guid>https://blog.youkuaiyun.com/gunchen1487/article/details/82929418</guid><author>gunchen1487</author><pubDate>Tue, 02 Oct 2018 23:50:05 +0800</pubDate><description><![CDATA[以下为开发步骤:

微信公众号为服务号且开通微信认证（其他类型账号不能发送）
ip白名单设置你的服务器ip（用于获取access_token）
网页授权你的域名(用于获取用户的openid)
开通模板消息并在模板库中选用模板
获取openid
发送模板消息

ip白名单


网页授权


开通模板消息并选用模板




获取openid
[这是官方给出的文档]

用户同意授权，获取code
接口地...]]></description><category></category></item></channel></rss>