Skip to content

fix: 修复blogs接口在手动删除redis数据库后抛出异常错误500问题 #158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

decrySign
Copy link

问题复现方法

手动删除Redis数据库后访问/blogs接口 报错{"code":500,"msg":"异常错误","data":null}

问题说明

原有代码在缓存中保存了 PageResult,但读取出来后 BlogInfo 的结构不一致,导致序列化异常。

修复方式

调整了缓存的序列化处理逻辑,确保缓存读取后格式正确。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant