Adaptors satisfy some need and usually occur without conscious awareness; they are unintentional movements that usually go unnoticed. Researchers iden ...
分类:
其他好文 时间:
2020-04-19 00:40:53
阅读次数:
58
think.model 提供了丰富的CRUD方法,下面说明一下这些组合方法转为 sql 的实现原理 以 select 为例 const userData = await this.model('user').where({ token, phone}).find(); think-model mod ...
分类:
数据库 时间:
2020-04-17 15:23:34
阅读次数:
101
起因 公司项目使用到了redis队列, 使用队列就会遇到队列被干掉的情况, 所以需要使用守护进程 过程 当项目上线之后, 需要在子项目根目录启动队列 php think queue:listen 但是这种写法, 一旦窗口关闭, 队列就会取消, 所以我就想了一个取消救国的方法, 让它在后台运行 noh ...
分类:
系统相关 时间:
2020-04-13 12:41:47
阅读次数:
92
If you do not have permission to create the directory object (and assuming that the directory object does not already exist), you'll need to send a re ...
分类:
其他好文 时间:
2020-04-13 12:28:50
阅读次数:
74
In i.MX Yocto Project User's Guide document Quick Start part: Install the `repo` utility:To get the BSP you need to have "repo" installed. This only n ...
分类:
Web程序 时间:
2020-04-09 14:16:23
阅读次数:
102
使用的框架 1. 第三方登录集成 "基于ThinkPHP5的第三方登录插件" 2. QQ第三方登录集成 "QQ互联" 、 "qq第三方接入" ...
分类:
移动开发 时间:
2020-04-08 20:54:40
阅读次数:
96
在一个模型中,新建方法实现外键关联 <?php namespace app\user\model; use think\Model; class GridmanReportLogs extends Model { protected $table = 'sq_gridman_report_logs' ...
分类:
其他好文 时间:
2020-04-08 19:28:39
阅读次数:
347
tp5.0时使用migrate工具,composer安装 composer require topthink/think-migration=1.* 注意,tp5.0对应1版本的migration工具,tp5.1及以上对应2版本的migration工具 查看指令 php think 创建migrat ...
分类:
数据库 时间:
2020-04-08 19:21:02
阅读次数:
233
应用场景: 01:去爬虫微信公众号文章,我们需要通过requests的session进行爬取,已知requests的执行方式实际就是执行里面的request方法, 我们进行重写request方法的init,加入我们需要的字段: 如callback --获取response执行回调函数 need_pr ...
分类:
编程语言 时间:
2020-04-07 11:08:36
阅读次数:
97
参考以下两种解决: 1.zip While using git-bash, you may need the zip command to zip files. Then you will get error like “command not found“. This is because git ...