·微信公众号:服务号、企业号、订阅号
-
申请一个订阅号
-
-
-
Appid\appsecret
-
测试域名:nick.prodou.com
-
在调用微信jssdk页面引入js文件
<scriptsrc="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<scriptsrc="js/zepto.min.js"></script>
<script src="js/demo.js"></script>
-
-
Signature<-jsapi_ticket(7200秒)<-access_token(7200秒,后面的把前面替换)
-
Access_token的获取
-
ccess_token:https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET
-
jsapi_ticket:https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=jsapi
-
4oaaiUVu7LkJBWUf3gEeEsdLfChOx6CG1_heTIIqcUTlZ6ZbFlM5JOr_QgHR9T-qZLK3nVC8qAMeQR-e6D2WoriRQ-LMn-Fzvo1CMHCarDwK5nzoLmqa6v2YXRDmYHHwMVKiACAFOD
-
临时:kgt8ON7yVITDhtdwci0qeSTpWes4sV8raTKAWWI7oTWHJ2JxL_zhiV0tY1IBigVWUNzHQK59pYgGFt9ajxUIxw
-
-
和实际运用的区别: ·access_token更新,jsapi_ticket更新,前台数据静态-动态,