摘要: redis 和 memcached 有什么区别?redis 的线程模型是什么?为什么 redis 单线程却能支撑高并发? 这个是问 redis 的时候,最基本的问题吧,redis 最基本的一个内部原理和特点,就是 redis 实际上是个单线程工作模型,你要是这个都不知道,那后面玩儿 redis 的时 阅读全文
posted @ 2018-12-10 16:29 居委会-王某人 阅读(12215) 评论(0) 推荐(1) 编辑
摘要: composer require topthink/think-queue 之前默认版本为2.0.3 composer.json改为2.0.4升级一下即可 阅读全文
posted @ 2020-10-30 11:20 居委会-王某人 阅读(680) 评论(0) 推荐(0) 编辑
摘要: public function array_column($input, $columnKey, $indexKey = NULL) { $columnKeyIsNumber = (is_numeric($columnKey)) ? TRUE : FALSE; $indexKeyIsNull = ( 阅读全文
posted @ 2020-10-28 10:58 居委会-王某人 阅读(241) 评论(0) 推荐(0) 编辑
摘要: php中使用json_decode 显示NULL,的原因就是因为json_decode的数据不是严格意义上的UTF-8的编码。 所以需要手动修改转码即可! 使用php的file_get_contents获取API的json数据,从文件读取的json,js前端传递的json,在json_decode前 阅读全文
posted @ 2020-10-22 09:37 居委会-王某人 阅读(420) 评论(0) 推荐(0) 编辑
摘要: 第一步安装源 curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/mssqlrelease.repo 第二步安装驱动 yum install msodbcsql mssql-tools unix 阅读全文
posted @ 2020-03-11 16:15 居委会-王某人 阅读(3028) 评论(0) 推荐(0) 编辑
摘要: 当我们调用json返回的对象想要转成数组方便循环时 我们使用getContent()方法就可以转数组了 $data=$isvip->MyVip($request);$data = json_decode($data->getContent(),true);转载至:https://blog.csdn. 阅读全文
posted @ 2019-12-07 19:08 居委会-王某人 阅读(2579) 评论(0) 推荐(0) 编辑
摘要: tp5.1 解决方案 找到 thinkphp/library/think/db/Query.php目录 找到 public function field 方法 if (isset($this->options['order'])) {unset($this->options['order']);} 阅读全文
posted @ 2019-11-23 10:17 居委会-王某人 阅读(614) 评论(0) 推荐(0) 编辑
摘要: 1KHXJJKK9W-eyJsaWNlbnNlSWQiOiIxS0hYSkpLSzlXIiwibGljZW5zZWVOYW1lIjoi5rC45LmF5r+A5rS7IGlkZWEubWVkZW1pbmcuY29tIiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWF 阅读全文
posted @ 2019-11-12 11:49 居委会-王某人 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 一、composer require topthink/think-captcha没有反应 首先切换国内composer镜像 composer config -g repo.packagist composer https://packagist.phpcomposer.com 二、然后注意comp 阅读全文
posted @ 2019-07-10 18:00 居委会-王某人 阅读(296) 评论(0) 推荐(0) 编辑
摘要: UPDATE `cases` SET `case_desc` = replace(`case_desc`, 'src="//tuku-assets.m.jia.com/assets/img/m-integrate/loading_rec2_fb03b99cb0d6521754460047a72d01 阅读全文
posted @ 2019-06-06 15:02 居委会-王某人 阅读(602) 评论(0) 推荐(0) 编辑
摘要: 今天在做小程序的过程中使用HTTPS请求数据时,遇到安卓机型无法获取到数据,通过一系列的排查,发现是因为ssl证书的问题,后来通过https://www.myssl.cn/tools/check-server-cert.html检查发现缺少中间证书: 打开网址 : https://www.myssl 阅读全文
posted @ 2019-05-14 14:31 居委会-王某人 阅读(471) 评论(0) 推荐(0) 编辑