i
This commit is contained in:
gr
2026-10-22 11:12:29 +08:00
480 changed files with 9840 additions and 953 deletions
+2
View File
@@ -52,6 +52,8 @@ mysql -u<user> -p<pass> <db> < server/database/migrations/2026_04_20_create_qywx
Linux crontab(每 30s 跑一次的 2 行写法):
以下示例安装在 PHP-FPM 应用用户的 crontab 中。当前生产用户为 `www`;若由 root / 宝塔调度,PHP 命令应使用 `/usr/sbin/runuser -u www -- /www/server/php/82/bin/php` 前缀。CLI、常驻 worker 和网页共用文件缓存,混用 root 会导致网页同步报 Permission denied。已有缓存修复和宝塔任务持久化要求见 [缓存权限说明](../../deployment/im-chat-cache-permissions/README.md)。
```
* * * * * cd /path/to/server && /usr/bin/php think qywx:sync-msg-archive --download >/dev/null 2>&1
* * * * * cd /path/to/server && sleep 30 && /usr/bin/php think qywx:sync-msg-archive --download >/dev/null 2>&1