摘要: 问题 分析问题 大致意思是用户wlxy访问localhost地址的数据库时被拒绝了。 但是数据库我已经建好了,用户名和密码也设置了,就是死活连不上。 解决问题 1、mysql 中查看wlxy用户是否确实存在 命令行工具 mysql -u root -p 输入数据库密码,进入mysql 2、查看用户信 阅读全文
posted @ 2022-03-25 22:49 无聊猿 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 最近做调试时,无意发现微信的一个bug 代码如下: 闪退如下: 微信版本如下: 手机为: iPhone Xs 系统版本为: 15.2 阅读全文
posted @ 2022-03-24 00:40 无聊猿 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 报错信息 Ignoring invalid timezone passed to Connection: +8:00. This is currently a warning, but in future versions of MySQL2, an error will be thrown if 阅读全文
posted @ 2022-03-20 21:16 无聊猿 阅读(479) 评论(0) 推荐(0) 编辑
摘要: ![image](https://img2022.cnblogs.com/blog/1191908/202203/1191908-20220316235612006-1851563884.png) 阅读全文
posted @ 2022-03-16 23:57 无聊猿 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 安装 npm install egg-jwt --save 配置 // config/config.default.js config.jwt = { secret: 'zidingyi', // 自定义 token 的加密条件字符串 }; // config/plugin.js jwt: { en 阅读全文
posted @ 2022-03-15 21:11 无聊猿 阅读(700) 评论(0) 推荐(0) 编辑
摘要: 问题出现背景 做微信H5网页时,使用花生壳内网穿透进行调试时,打开网页显示:invalid host header 分析问题 这句话的意思是:无效的Host请求头; 因为在vue在调试时相当于启动了一个服务器以供我们访问(当我们build后,就可以放在我们自己的nginx等服务器) 测试环境下的we 阅读全文
posted @ 2022-03-14 21:34 无聊猿 阅读(11230) 评论(0) 推荐(2) 编辑
摘要: 原始数据 [ [ '月份', 202109 ], [ '身份证号', '21231213123' ], [ '姓名', '张三' ], [ '工资1', 100 ], [ '工资2', 200 ], [ '工资3', 300 ], [ '工资4', 100 ] ] 格式化后数据 { '月份': 20 阅读全文
posted @ 2022-03-13 22:41 无聊猿 阅读(110) 评论(0) 推荐(0) 编辑
摘要: // 保存图片至相册 saveImg() { //获取文件管理器对象 const fs = wx.getFileSystemManager() //文件保存路径 const Imgpath = wx.env.USER_DATA_PATH + '/qrcodeImg' + '.png' //base6 阅读全文
posted @ 2022-01-21 22:35 无聊猿 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 吐槽:某厂的开发文档写的跟屎一样 1、后台返回accessToken,小程序请求获取小程序码 uni.request({ url: 'https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=' + res.data.accessTok 阅读全文
posted @ 2022-01-19 22:26 无聊猿 阅读(1436) 评论(0) 推荐(0) 编辑
摘要: 项目用到链式?.结果eslint一直提示 const permissionHandleArr = positionPermissionHandle.map(item => item.permission_handle?.name); 解决方案 升级eslint-config-egg至8.1.2 说明 阅读全文
posted @ 2021-12-25 23:04 无聊猿 阅读(227) 评论(0) 推荐(0) 编辑