- 博客(5)
- 收藏
- 关注
原创 tp6 微信小程序 自动登录注册 jwt鉴权
声明:只取用户openid作为用户唯一标识使用,获取其他信息需要用户授权1.在微信小程序app.js中,weixin.login获取code码给后台赋值 wx.login({ success: res => { // 发送 res.code 到后台换取 openId, sessionKey, unionId wx.request({ url: 'http://www.xxxxx.com/api/login',//需要请求的地
2021-08-29 19:42:11
656
原创 tp6 上传图片至阿里云
使用composer在你的项目根目录下载 composer require aliyuncs/oss-sdk-php 这种方式最为简便,其他两种方式请参考官方文档https://help.aliyun.com/document_detail/85580.html?spm=a2c4g.11186623.6.1005.4dac14a0XmeHtD 首先我们先封装一个方法至服务层或者公共方法中,根据阿里云sdk的官方文档https://help.aliyun.com/document_detail/
2021-08-11 14:03:43
470
原创 小程序多图上传至阿里云云服务器
1.小程序端点击上传图片完成时触发onChangeTap:function(env){//获得图片信息varPhoto=this.data.photo//循环所有图片数据env.detail.all.forEach(element=>{//文件上传wx.uploadFile({//文件路径filePath:element,//文件名称name:'file',//上传地址...
2021-08-01 21:56:10
413
原创 elasticsearch简单调用高亮展示
1.切换到ES的bin目录双击elasticsearch.bat 启动elasticsearch服务或者
2021-06-10 17:20:38
245
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人