Appearance
常见错误
401 Missing token: 未携带Authorization。401 Invalid token: token 过期或密钥不一致。401 Fingerprint mismatch: IP/UA 变化导致指纹不同。403 Level locked: token 等级不足。- 静态页未挂载:检查
levels/<module>/static/是否存在。
日志与调试
main.py使用logging.getLogger("hey26")输出警告。- 可在
config/config.json中设置debug=true启用调试。
运维建议
- 生产环境配置
x-forwarded-for以保证 IP 获取正确。 - 合理设置
token_expire_hours。