
ThinkPHP
文章平均质量分 87
缘来侍你
一个打杂的前后端开发人员,记录debug的点点滴滴
展开
-
ThinkPHP5实现定时器任务
方法一 1.在/application/command创建要配置的PHP类文件,需要继承Command类,并重写configure和execute两个方法,例如: <?php namespace app\command; use think\console\Command; use think\console\Input; use think\console\Output; use think\Db; class Test extends Command { // 配置定时器的信息原创 2021-08-17 15:07:43 · 3550 阅读 · 1 评论 -
tp6生成二维码
composer require dh2y/think-qrcode安装 遇到问题: 1.conposerSSL报错 2.php版本小于7.1 若发现conposer SSL报错保证SSL扩展开启的情况下还是报错,可能是被墙了,切换镜像即可 若PHP版本小于7.1,最简单的方法,可直接修改windows环境变量,改成7.1以上的PHP(注意修改完之后要重启,否则不会生效) think-qrcode安装成功之后(在vendor文件夹下找到dh2y/think-qrcode表示安装成功) 运行接口原创 2020-06-17 18:56:06 · 3529 阅读 · 1 评论