摘要: { field: 'buttons', width: "120px", title: __('试题'), table: table, events: Table.api.events.operate, buttons: [ { name: 'detail', text: __('考试试题'), ti 阅读全文
posted @ 2022-03-03 10:50 鲨鱼大王 阅读(931) 评论(0) 推荐(0) 编辑
摘要: ->where(function ($query) { $param = $this->request->param(); $train_body_id = isset($param['train_body_id'])?$param['train_body_id']:0; $query->where 阅读全文
posted @ 2021-10-22 15:26 鲨鱼大王 阅读(136) 评论(0) 推荐(0) 编辑
摘要: getimagesize($im['img']); 是图片返回图片信息 不是图片返回false 阅读全文
posted @ 2021-10-22 15:23 鲨鱼大王 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 扫描文件夹获取目录 //scandir方法 $arr = array(); $data = scandir('./Uploads/ipcai/'); foreach ($data as $value){ if($value != '.' && $value != '..'){ $arr[] = $v 阅读全文
posted @ 2021-10-15 16:01 鲨鱼大王 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 编写.bat文件 @echo off set a=0 setlocal EnableDelayedExpansion dir /b .\*.png | find /c /v "" >> .\tmp.txt set /p c=<.\tmp.txt del /a /f /q .\tmp.txt for 阅读全文
posted @ 2021-10-15 14:41 鲨鱼大王 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 修改reids配置文件打开订阅销毁事件 # 原配置: notify-keyspace-events "" # 更改为: notify-keyspace-events "Ex" 添加TP5.1 Redis订阅处理函数 <?php namespace app\common\command; use th 阅读全文
posted @ 2021-09-13 09:50 鲨鱼大王 阅读(228) 评论(0) 推荐(0) 编辑
摘要: /** * [format_files $FILE 数组转换] * @param string $files [$_FILES获取的文件] */ function format_files($files) { $fileArray = array(); $n = 0; foreach ($files 阅读全文
posted @ 2021-08-09 17:42 鲨鱼大王 阅读(93) 评论(0) 推荐(0) 编辑
摘要: input { stdin { } jdbc { # 驱动 jdbc_driver_library => "D:/elk/logstash-7.13.4/lib/mysql-connector-java-5.1.49.jar" # 驱动类名 jdbc_driver_class => "com.mys 阅读全文
posted @ 2021-08-05 15:31 鲨鱼大王 阅读(273) 评论(0) 推荐(0) 编辑
摘要: PHP代码 <?php /** * 上传类 */ namespace app\api\controller; class Upload { /* * 流程 * 1.移动临时文件到指定目录 * 2.判断是否是最后一块,并进行合并 * 3.删除临时文件及目录 * 4.返回相关信息 */ private 阅读全文
posted @ 2021-07-29 10:49 鲨鱼大王 阅读(182) 评论(0) 推荐(0) 编辑
摘要: <?php //非常给力的authcode加密函数,Discuz!经典代码(带详解) //函数authcode($string, $operation, $key, $expiry)中的$string:字符串,明文或密文;$operation:DECODE表示解密,其它表示加密;$key:密匙;$e 阅读全文
posted @ 2021-07-23 15:30 鲨鱼大王 阅读(83) 评论(0) 推荐(0) 编辑