![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
开发日常
纸上画佳人
这个作者很懒,什么都没留下…
展开
-
PHP:小程序实现推送订阅消息
思路:1.首先拿到->access_token2.然后获取openid(需前端传code)3.小程序后台申请订阅消息模板4.推送消息 (需前端授权订阅消息发送) //请求access_token $getToken = file_get_contents("https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=你的小程序id&secret=小程序的秘钥"); //json解析原创 2021-03-12 11:54:51 · 976 阅读 · 0 评论 -
vant 上传图片之前压缩后上传
vant上传图片 图片上传前压缩后再上传最近开发中碰到这个问题,所以便记到这里首先是van-uploader组件使用 <van-uploader v-model="fileList" multiple :max-count="1" capture :after-read="afterRead" @delete="deletes()" /> //文件上传完毕后会触发 after-read 回调函数,获原创 2020-11-02 10:28:38 · 908 阅读 · 1 评论