超灬超  
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页

2020年12月4日

摘要: 在model里面onAfterUpdate里面调用$model->save()报502了,好像因为save直接触发了onAfterUpdate 导致无限循环,后来使用self::where()->save()就好了 阅读全文
posted @ 2020-12-04 11:11 超灬超 阅读(535) 评论(0) 推荐(0) 编辑

2020年11月12日

摘要: // 监听整个网页的copy(复制)事件document.addEventListener('copy', function (event) { // clipboardData 对象是为通过编辑菜单、快捷菜单和快捷键执行的编辑操作所保留的,也就是你复制或者剪切内容 let clipboardDat 阅读全文
posted @ 2020-11-12 10:08 超灬超 阅读(1095) 评论(0) 推荐(0) 编辑

2020年11月11日

摘要: // 查询文档 (分页,排序,权重,过滤) public function search_doc($keywords = "",$year='', $province_arr=[], $from = 0, $size = 10, $order = ['id' => ['order' => 'asc' 阅读全文
posted @ 2020-11-11 13:28 超灬超 阅读(165) 评论(0) 推荐(0) 编辑

2020年11月10日

摘要: 主要思想:首先需要共享session_id 然后单个网站登录时。通过加密sessionid和用户信息生成一个cookie(),另一个网站进入时如果有这个cookie ,则解析这个cookie.获取登录状态 设置自动登录 1.看上一个随笔,将两个站点的cookie的domain设置为顶级域名 2.开启 阅读全文
posted @ 2020-11-10 16:55 超灬超 阅读(295) 评论(0) 推荐(0) 编辑

2020年11月9日

摘要: config/cookie.php 阅读全文
posted @ 2020-11-09 15:09 超灬超 阅读(1327) 评论(0) 推荐(0) 编辑

2020年8月10日

摘要: /** * 富文本图片通用 */ public function set_img_style(&$activity) { $activity['guest'] = preg_replace("/width: [0-9]*px;/", "max-width:100%;", $activity['gue 阅读全文
posted @ 2020-08-10 13:53 超灬超 阅读(311) 评论(0) 推荐(0) 编辑

2020年8月6日

摘要: 环境:centos 6 php73 mysql56 ELASTIC7.71 1.安装elastic 使用华为云镜像更快哦 https://mirrors.huaweicloud.com/elasticsearch/ wget https://mirrors.huaweicloud.com/elast 阅读全文
posted @ 2020-08-06 11:02 超灬超 阅读(903) 评论(0) 推荐(0) 编辑

2020年8月5日

摘要: excel读取速度很快 插入很慢 解决方案:每条数据都添加到队列中,然后让他慢慢执行 1 composer require top-think/think-queue 2 导入方法 放入queue中 /** * @NodeAnotation(title="导入") */ public functio 阅读全文
posted @ 2020-08-05 12:22 超灬超 阅读(413) 评论(0) 推荐(0) 编辑

2020年8月3日

摘要: $ip = $_SERVER['REMOTE_ADDR']; // $ip = '36.5.106.8'; $ak = "你的百度APIAK"; $url = "http://api.map.baidu.com/location/ip?ak=$ak&ip=$ip&coor=bd09ll"; $re 阅读全文
posted @ 2020-08-03 14:50 超灬超 阅读(1366) 评论(0) 推荐(0) 编辑

2019年12月31日

摘要: if (!function_exists('gene_poster')) { function gene_poster($param) { $user = User::where(['id' => $param['user_id']])->find(); $link = "http://".$_SERVER['SERVER_NAME'] . '/index/user/register/pid/' 阅读全文
posted @ 2019-12-31 13:49 超灬超 阅读(1340) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页