refactor: Optimize user caching and token retrieval methods

This commit is contained in:
1808837298@qq.com committed 2025-02-19 15:12:26 +08:00
1 parent 83e161a1d4
commit 1ae0a38485
7 files changed
+21 -8

No files matched your search

+1 -1
View File
@@ -472,7 +472,7 @@ func GetUserModels(c *gin.Context) {
if err != nil {
id = c.GetInt("id")
}
user, err := model.GetUserById(id, true)
user, err := model.GetUserCache(id)
if err != nil {
c.JSON(http.StatusOK, gin.H{
"success": false,