李东's Blog

李东

fastadmin 访问菜单的时候 还是显示 无权限

fastadmin 访问菜单的时候 还是显示 无权限

##### 手动复制的控制器 不是用命令生成的 然后必须权限规则 必须得精确到 控制器的方法 比如控制器是cost 那么规则就是 cost/index 不然权限就会出现这个问题 ![fastadmin](https://lidong.cc./uploads/images/2022-08-03/20220803120048750.jpg "fastadmin")
php
1382
2022-08-03
fastadmin 访问菜单的时候 还是显示 无权限

fastadmin 访问菜单的时候 还是显示 无权限

### 什么是 GitHub Issue sudo pacman-mirrors -i -c China -m rank <pre><code> &lt;script type="text/javascript"&gt; var lastTime = new Date().getTime(); var currentTime = new Date().getTime(); var timeOut = 10 * 60 * 1000; //设置超时时间: 10分 $(function(){ /* 鼠标移动事件 */ $(document).mouseover(function(){ lastTime = new Date().getTime(); //更新操作时间 }); }); function testTime(){ currentTime = new Date().getTime(); //更新当前时间 if(currentTime - lastTime &gt; timeOut){ //判断是否超时 超时就访问退出接口 $.ajax({ url:"admin/logout", dataType:"json", type:"get", async : false, cache : false, success:function(){ // 退出登陆接口 window.location.href="admin/login"; }, error:function(){ } }) } } /* 定时器 间隔1秒检测是否长时间未操作页面 */ window.setInterval(testTime, 1000); &lt;/script&gt; </code></pre>
php
1285
2022-08-03
everything官网,电脑本地文件搜索神器,装机必备软件工具

everything官网,电脑本地文件搜索神器,装机必备软件工具

Everything 是一款非常实用的文件搜索工具,它为用户提供了快速、灵活和高效的文件搜索方式。通过使用 Everything,您可以快速找到您需要的文件,提高工作效率和文件管理质量。Everything 是一个免费的桌面搜索引擎软件,它能够快速、准确地搜索并定位计算机上的文件和文件夹。 ![](https://lidong.cc/uploads/images/2024-12-17/20241217144859725.png)
php
1420
2022-07-24
web页面长时间未操作后,自动退出到登录页面

web页面长时间未操作后,自动退出到登录页面

### 用定时器记录鼠标的时间,到时间定时器自动走接口退出 <script type="text/javascript"> var lastTime = new Date().getTime(); var currentTime = new Date().getTime(); var timeOut = 10 * 60 * 1000; //设置超时时间: 10分 $(function(){ /* 鼠标移动事件 */ $(document).mouseover(function(){ lastTime = new Date().getTime(); //更新操作时间 }); }); function testTime(){ currentTime = new Date().getTime(); //更新当前时间 if(currentTime - lastTime > timeOut){ //判断是否超时 超时就访问退出接口 $.ajax({ url:"admin/logout", dataType:"json", type:"get", async : false, cache : false, success:function(){ // 退出登陆接口 window.location.href="admin/login"; }, error:function(){ } }) } } /* 定时器 间隔1秒检测是否长时间未操作页面 */ window.setInterval(testTime, 1000); </script>
php
2628
2022-07-24
Windows下php安装redis扩展 详细操作

Windows下php安装redis扩展 详细操作

## Windows下php安装redis扩展 详细操作 1.先打开phpinfo 查看相关配置信息 ![php](https://lidong.cc/uploads/images/2022-07-24/20220724213233644.jpg "php") 2.到此网站选择合适的版本进行下载 [redis下载地址](https://pecl.php.net/package/redis "redis下载地址") ![redis](https://lidong.cc/uploads/images/2022-07-24/20220724213342915.jpg "redis") ##### 3.将下载好的扩展包里面的拓展文件(.dll)放到对应php版本的文件目录的ext下面 ##### 4.修改php.ini,加入extension=php_redis.dll ##### 5.重启nginx或Apache服务器 然后打开phpinfo 搜索redis即可 ![redis](https://lidong.cc/uploads/images/2022-07-24/20220724213412995.jpg "redis")
php
2467
2022-07-24
HTML打开网页自动播放音乐

HTML打开网页自动播放音乐

##### 网页播放音乐如果不能自动播放,用这段代码放在body结尾的下面。即可运行。 <iframe src = "文件地址.MP3" allow = "autoplay" hidden />
php
2648
2022-07-24
php模拟post进行url请求 参数在body里面

php模拟post进行url请求 参数在body里面

* 模拟post进行url请求 参数在body里面 * @param string $url * @param array $post_data */ function request_post($url = '', $post_data = array()) { if (empty($url) || empty($post_data)) { return false; } $o = ""; foreach ( $post_data as $k => $v ) { $o.= "$k=" . urlencode( $v ). "&" ; } $post_data = substr($o,0,-1); $postUrl = $url; $curlPost = $post_data; $ch = curl_init();//初始化curl curl_setopt($ch, CURLOPT_URL,$postUrl);//抓取指定网页 curl_setopt($ch, CURLOPT_HEADER, 0);//设置header curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);//要求结果为字符串且输出到屏幕上 curl_setopt($ch, CURLOPT_POST, 1);//post提交方式 curl_setopt($ch, CURLOPT_POSTFIELDS, $curlPost); $data = curl_exec($ch);//运行curl curl_close($ch); // print_r($postUrl);exit; return $data; }
php
2431
2022-07-24
将linux服务器文件传到阿里云oos文件

将linux服务器文件传到阿里云oos文件

在Linux服务器上面输入路径 ./ossutil64 cp -r 服务器目录 oss://Bucket 名称/路径
php
1068
2022-07-24