摘要: <?php namespace app\admin\controller; use app\admin\model\Esones; use app\common\lib\ES; use think\Controller; use think\Request; class Esone extends 阅读全文
posted @ 2021-04-14 11:31 Conqueror· 阅读(78) 评论(0) 推荐(0) 编辑
摘要: return [ 'connector' => 'Redis', // Redis 驱动 'expire' => null, // 任务的过期时间,默认为60秒; 若要禁用,则设置为 null 'default' => 'default', // 默认的队列名称 'host' => '127.0.0 阅读全文
posted @ 2021-04-13 21:53 Conqueror· 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 1、首先,compare需要下载安转包,如果你有的话就可以直接使用这个扩展包 消息队列扩展 composer require topthink/think-queue 在extra文件夹中的queue.php进行配置 return [ 'connector' => 'database', 'tabl 阅读全文
posted @ 2021-04-13 20:53 Conqueror· 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 原生方式 添加索引 $hosts = [ '127.0.0.1:9200' ]; $client = \Elasticsearch\ClientBuilder::create()->setHosts($hosts)->build(); // 创建索引 $params = [ 'index' => ' 阅读全文
posted @ 2021-04-13 17:57 Conqueror· 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 可以放置到你的类库文件,使用的时候直接引用 下载扩展包 全文检索 composer require elasticsearch/elasticsearch <?php namespace app\common\lib; use Elasticsearch\ClientBuilder; class E 阅读全文
posted @ 2021-04-13 17:31 Conqueror· 阅读(464) 评论(0) 推荐(0) 编辑
摘要: tabBar属于全局配置,所以它应该在app.json中进行配置 "tabBar": { "color": "#ccccc", "selectedColor": "#42BD55", "backgroundColor": "", "position": "bottom", "borderStyle" 阅读全文
posted @ 2021-03-29 22:14 Conqueror· 阅读(692) 评论(0) 推荐(0) 编辑
摘要: 首先在app.json中加入 视频音频 xml代码 <view class="page-body"> <view class="page-section tc"> <video id="myVideo" src="http://wxsnsdy.tc.qq.com/105/20210/snsdyvid 阅读全文
posted @ 2021-03-16 11:17 Conqueror· 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 在laravel app目录下创建自己的方法的文件夹,名字自定义 写一个测试方法 然后控制器里面use 方法 然后使用 如果方法使用的地方多起来,以后再改就会很麻烦,这时我们可以使用门面 在laravel app目录下创建自己的方法的文件夹,名字自定义 写一个测试方法 然后控制器里面use 方法 然 阅读全文
posted @ 2021-03-16 09:40 Conqueror· 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 首先使用composer安装扩展 composer require elasticsearch/elasticsearch composer require nunomaduro/collision 开启你的 elasticsearch 与 kibana HTML代码 使用vue进行数据渲染 <!d 阅读全文
posted @ 2021-03-15 22:02 Conqueror· 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 当鼠标移出输入框时文本框内容发送至后台,提交保存 html代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <script src="https://cdn.staticfil 阅读全文
posted @ 2021-03-15 14:35 Conqueror· 阅读(86) 评论(0) 推荐(0) 编辑