小程序+公众号
没有简介
小蔡来了
写的是我个人学习时的总结和学习过程的思路,代码质量有待提高,希望共同进步。
展开
-
解决小程序总是拿不到session的形况
设置session头部,res1.header[‘Set-Cookie’]保存到缓存中 var that=this; // 登录 wx.login({ success: res => { // 发送 res.code 到后台换取 openId, sessionKey, unionId console.log(res) wx.request({ url: that.globalData.url+"/dom原创 2021-04-17 21:29:30 · 404 阅读 · 0 评论 -
php开发微信公众号代码封装(含post-get-getToken)
php开发微信公众号代码封装注意,php版本不要大于7.x,不然*$postStr = $GLOBALS[“HTTP_RAW_POST_DATA”] ;*这句代码会受影响;<?php define("token", "aaabbbccc");define("appid", "wx33d9375e8c172418");define("appsecret", "4c51dc2a14e743e00c17f29e6f266eb6");// 注意php版本不要7.x以上// 调用下面的方法$po原创 2021-04-14 23:38:26 · 1110 阅读 · 3 评论 -
php配置微信公众号接口配置
$timestamp = $_GET['timestamp']; $nonce = $_GET['nonce']; $token = 'aaabbbccc'; //在网页中配置的token $signature = $_GET['signature']; $array = array($timestamp,$nonce,$token); $tmpstr= implode('',$array); $tmpstr = sha1($tmpstr); if ($tmpstr == $signatu.转载 2021-04-11 23:47:17 · 320 阅读 · 0 评论 -
小程序开发的一些基本知识
知识点①使用swipter时怎么设置swipter高度?列出初中公式:swipter宽度w / swipter高度h = 图片宽度w / 图片高度 hso得出:swipter高度h=swipter宽度w * 图片高度h / 图片宽度wswipter高度h=calc=(100vw * th / tw)富文本标签...原创 2021-03-29 23:27:03 · 162 阅读 · 0 评论