实现后台及前台通过API访问UV埋点,所有代码全部保存

This commit is contained in:
2025-11-08 18:15:26 +08:00
parent 6bad32d9b1
commit e440631275
43 changed files with 5960 additions and 1105 deletions

View File

@@ -1,7 +1,24 @@
<?php
return [
'default' => 'default',//url URL接口启动 cli 命令启动 default 系统任务
// 是否开启定时任务
'enable' => true,
/**
* 定时任务默认模式
* url URL接口启动
* cli 命令启动。 是通过 php think cron:schedule 命令创建一个守护进程来启动的
* default 系统任务
*/
'default' => 'cli',
// 类方法任务列表, yunwuxin/think-cron 配置方式
// 然后通过 php think cron:schedule 命令启动一个进程来调度处理
// 特别要注意有的时候cli 模式下,计划任务会因为守护进程的原因,导致计划任务不执行
// 解决办法:
// 1. 检查是否开启了守护进程
// 2. 检查守护进程是否正常运行
// 3. 检查计划任务是否正常运行
'tasks' => [
\app\command\Schedule::class
]