更新 2026年3月25日

修复单页面报错问题

问题描述

部分独立页面(如捐赠页、常见问题页)打开时,页面顶部会显示以下错误信息:

Deprecated: hash_hmac(): Passing null to parameter #3 ($key) of type string is deprecated

Warning: Cannot modify header information - headers already sent

影响范围

所有不需要登录即可访问的独立页面,包括 /donate、/faq 等。

修复内容

修复了用户登录状态自动检测时,由于密钥参数未正确加载导致的异常,现已增加安全检查,确保参数有效后再执行相关操作,避免页面输出错误信息。