摘要: 我发现修改.env文件里的APP_TRACE=false仍然无法关闭页面右下角的调试图标 1.创建一个类app/common/libs/NullTrace.php <?php namespace app\common\libs; use think\App; use think\Response; 阅读全文
posted @ 2023-03-17 10:50 _迷途 阅读(370) 评论(0) 推荐(0)
摘要: /.idea/ /.vscode/ /vendor/ /runtime/ /public/uploads/ /public/upload/ /.DS_Store/ /thinkphp/ *.log .env .DS_Store .htaccess /public/.htaccess .user.in 阅读全文
posted @ 2023-03-16 17:01 _迷途 阅读(201) 评论(0) 推荐(0)
摘要: 解决办法①:设置网卡缓存: 输入代码查看当前缓存大小: ethtool -g eth0 然后编辑这个文件: vim /etc/rc.local 将以下内容填写到配置文件中: ethtool -G eth0 tx 2048 ethtool -G eth0 rx 2048 来源:https://blog 阅读全文
posted @ 2023-03-15 20:42 _迷途 阅读(2358) 评论(0) 推荐(0)
摘要: php think build --module test 新建一个test应用 阅读全文
posted @ 2023-03-01 13:52 _迷途 阅读(41) 评论(0) 推荐(0)
摘要: Win10设置共享访问时总是提示输入用户名和密码!如何解决? 以下设置适用于Win7、Win8、Win8.1、Win10在设置共享后,其它电脑访问共享时提示需要密码的解决方法。(达到目的有很多途径,此方法仅供参考) 1、计算机(右键)>管理>本地用户和组>Guest(右键-设置密码-确定)即空密码。 阅读全文
posted @ 2023-03-01 09:52 _迷途 阅读(5394) 评论(0) 推荐(0)
摘要: 代码如下: 图片下载后,把扩展名的jpg改成zip 阅读全文
posted @ 2023-02-28 00:21 _迷途 阅读(26) 评论(0) 推荐(0)
摘要: Free VMware Workstation Pro 17 full license keys Install VMWare Workstation PRO 17 (Read it right. PRO!) *If you have a problem comment and people wil 阅读全文
posted @ 2023-01-18 14:09 _迷途 阅读(1500) 评论(0) 推荐(0)
摘要: pip install Pillow import hashlib from io import BytesIO def get_hash(file): """ :param bytes file: :return: """ md5hash = hashlib.md5(Image.open(file 阅读全文
posted @ 2023-01-10 15:04 _迷途 阅读(389) 评论(0) 推荐(0)
摘要: /** * 通过数据库的方式递归查询当前分类ID的所有子分类ID * @param $id * @return array * @throws DataNotFoundException * @throws DbException * @throws ModelNotFoundException * 阅读全文
posted @ 2022-12-23 23:26 _迷途 阅读(168) 评论(0) 推荐(0)
摘要: /** * 通过数据库递归的方式查找当前分类ID的所有上级ID * @throws ModelNotFoundException * @throws DbException * @throws DataNotFoundException */ public function findAllParen 阅读全文
posted @ 2022-12-23 23:13 _迷途 阅读(135) 评论(0) 推荐(0)