Files
vps-management-bot/memory/2026-03-18.md
2026-03-21 01:10:53 +08:00

66 lines
2.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2026-03-18
## aff-monitor VPS补货监控
### 项目信息
- 服务器: 37.114.48.232 (KVM)
- 端口: 3900
- SSH: root / fJ7#vP9s@tL2qX!d
- 技术栈: Node.js + Express + EJS + SQLite(better-sqlite3)
- 服务: `systemctl restart aff-monitor`
- 数据库: `/opt/aff-monitor/db/monitor.sqlite`
### 已完成
1. **库存状态页 `/stock`** — dmitea风格白色背景+橙色强调,按商家分组,统计面板
2. **后台管理界面重设计** — 白色背景+橙色强调,统一风格
3. **监控任务清理** — 删除68个任务 + 2629条检测记录
4. **数据保留** — 3商家(GoMami/po0/RFCHost) + 68产品
### 关键文件
- `/opt/aff-monitor/src/views/public/stock.ejs` — 公开库存页
- `/opt/aff-monitor/src/public/css/style.css` — 全局CSS
- `/opt/aff-monitor/src/views/admin/*.ejs` — 后台页面
- `/opt/aff-monitor/src/views/partials/admin-header.ejs` — 后台导航
### 待办
- [ ] RFCHost 403问题需要浏览器模式采集
- [ ] 创建监控任务(目前无任务)
- [ ] TG频道推送配置
### 后续更新(下午)
#### aff-monitor 配色修复
- 用户要求:**白色背景 + 橙色强调** (不是暗色主题)
- 之前错误理解为暗色主题,来回改了几次
- stock.ejs 是独立内联样式不引用全局CSS需单独改
- **踩坑**: 用 shell heredoc 写 EJS 模板时,`\"` 转义会破坏 EJS 语法;正确做法是本地写文件再 cat 上传
- **踩坑**: stock.ejs 路由传的变量是 `grouped`对象key=商家名)不是 `merchants`
- 去掉了"未知"状态,产品只有"有货/缺货"两种
- 备份在 `/opt/aff-monitor/src/views.bak/`
#### aff-monitor 服务器迁移
- MEMORY.md 记录的是 45.82.120.52 (Bero),但实际现在跑在 **37.114.48.232** (KVM)
- 需要更新 MEMORY.md 中 aff-monitor 的 IP
#### QClaw (腾讯本土化 OpenClaw)
- 地址: https://qclaw.qq.com
- 腾讯电脑管家团队出品
- 微信扫码直连,内置国产大模型
- 支持 macOS + Windows需邀请码
- 吉祥物是龙虾 🦞
- 用户已申请邀请码,等下来了装试试
- 跟现有 OpenClaw 不冲突,可以同时装
#### N100 OpenClaw 修复
- N100 OpenClaw **没有卸载**MEMORY.md 说"已卸载"是错的)
- 实际是本地安装 `/usr/local/bin/openclaw` v2026.3.13
- 配置: `/root/.openclaw/openclaw.json`
- SSH: `sshpass -p 'fJ7#vP9s@tL2qX!d' ssh -p 22288 root@157.254.53.55`(密钥不行要用密码)
- 问题1: **百度千帆 qianfan-code-latest 持续 429 限流**
- 修复: 主模型从千帆→Kimi K2千帆降为 fallback
- 新配置: primary=volcengine/kimi-k2-250905, fallbacks=[千帆, 豆包Seed2.0Pro]
- 问题2: **systemd 服务文件丢失**
- 修复: `openclaw gateway install` + `openclaw gateway restart`
- Bot: @aibot444_bot | 企微+QQ+TG 三通道
- **需要更新 MEMORY.md**: N100 条目改为"OpenClaw 本地安装 v2026.3.13"