
小程序
池存祥
点点滴滴,都是自我的积累
github.com/ccx1
展开
-
微信小程序-getUserInfo失效
写个小程序, 经历了 - -wx.authorize({scope: "scope.userInfo"}),不会弹出授权窗口请使用 <button open-type="getUserInfo"/>最新<button open-type="getUserInfo"/> 已作废, 后续使用 wx.getUserProfile wx.getUserProfile({ ..原创 2021-04-30 12:21:08 · 1204 阅读 · 0 评论 -
微信小程序-发送订阅消息
发送微信订阅消息一直出错user refuse to accept the msg rid: 5ff8563e-2acaf6dc-75492f03ThisAPIhasbeenunsupportedhint踩坑记录真正的订阅消息文档流程文档https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/subscribe-message.html调用数据文档https://develop...原创 2021-01-08 21:01:26 · 4970 阅读 · 0 评论 -
微信小程序-解析encryptedData, 用户信息,手机号
第一步.调用wx.login 获取code第二步.根据code去获取session_keyget请求https://api.weixin.qq.com/sns/jscode2session第三步,将接口返回的session_key.wx接口的iv,encryptedData, 放进工具类解密手机号, 用户信息都已经测试过,可以使用解密方法如下/** * 解密工具直接放进去即可 */public static String decryptS5(St...原创 2021-01-08 09:51:29 · 9425 阅读 · 5 评论