上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页
摘要: model.php文件\\ use Illuminate\Database\Eloquent\Builder;use Illuminate\Database\Eloquent\Relations\Relation;use Illuminate\Database\Eloquent\Relations\ 阅读全文
posted @ 2019-06-19 15:50 迷失在路上 阅读(731) 评论(0) 推荐(0) 编辑
摘要: if (strpos($employee['avatar'], 'http') !== false) { // 获取https头像 取消ssl验证 $arrContextOptions = [ "ssl" => [ "verify_peer"=>false, "verify_peer_name"=> 阅读全文
posted @ 2019-06-17 14:07 迷失在路上 阅读(1751) 评论(0) 推荐(1) 编辑
摘要: 阅读全文
posted @ 2019-06-17 11:42 迷失在路上 阅读(4006) 评论(0) 推荐(0) 编辑
摘要: 统计表使用百度echarts http://echarts.baidu.com/echarts2/doc/start.html使用时 可以仿照 实例进行参数配置 阅读全文
posted @ 2019-06-10 11:36 迷失在路上 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 、引入第三方类库 .class.php文件 1.1 类库有写namespace命名空间 1. namespace Org\Util; 2. class Auth { 3. }保存到ThinkPHP/Library/Org/Util/Auth.class.php。(也就是说以Think、Org为根命名 阅读全文
posted @ 2019-06-08 20:23 迷失在路上 阅读(489) 评论(0) 推荐(0) 编辑
摘要: public function demo($frames) { foreach ($frames as $k => $frame) { $frames[$k]['allCount'] = $frame['employeeCount']; if ($frame['children']) { $fram 阅读全文
posted @ 2019-05-31 11:21 迷失在路上 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 事件系统 拥有多个互不依赖的监听器; 就是说你有多少的业务事件 可以开辟多少个事件与监听者的组合去处理;这样就可以有效的避免冲突 首先 我们需要注册一个时间类 比如订单的 orderEvent 在该App\Providers\EventServiceProvider文件中注册应用的事件类 order 阅读全文
posted @ 2019-04-15 16:37 迷失在路上 阅读(553) 评论(0) 推荐(0) 编辑
摘要: 第一步 将下载后的redis文件夹复制一份作为slave 第二步 修改slave文件夹内配置文件 redis.windows.conf port 8888 masterauth 123456 slaveof 127.0.0.1 6379 这样就可以配置成端口为6379的从服务器 第三步 打开2个黑窗 阅读全文
posted @ 2019-03-15 14:40 迷失在路上 阅读(864) 评论(0) 推荐(0) 编辑
摘要: 分组查询一定时间段的一组数据 并且需要获取最近的一条数据使用 SUBSTRING_INDEX GROUP_CONCAT 默认 , 链接 可以用SEPARATOR 进行字符定义 GROUP_CONCAT(created_at ORDER BY created_at DESC SEPARATOR '-' ) 对应的截取字符串时 也要相应修改 GROUP是组,CONCAT合并多个字符串,它的功能是... 阅读全文
posted @ 2019-03-13 11:11 迷失在路上 阅读(803) 评论(0) 推荐(0) 编辑
摘要: diff 方法 与 php内置函数 array_diff返回俩数组的差集 返回 [1,3,5] 阅读全文
posted @ 2019-03-11 09:48 迷失在路上 阅读(153) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页