一波更新

This commit is contained in:
tangping
2025-01-23 16:12:49 +08:00
parent 22ac6c1fed
commit 5f3a40a50e
90 changed files with 2392 additions and 1791 deletions

View File

@@ -4,7 +4,7 @@ import (
"common/remark"
"common/resultStatus"
"common/webServer"
"logincenter/internal/user"
"usercenter/internal/user"
)
func init() {

View File

@@ -4,8 +4,8 @@ import (
"common/cache"
"common/connection"
"goutil/logUtilPlus"
. "logincenter/internal/user"
"sync"
. "usercenter/internal/user"
)
// 包名称(功能名称)
@@ -32,7 +32,7 @@ func AddGame(user *User, game *Game) (int64, error) {
}()
//写入缓存
cache.SetData[*Game](user.Cache, packageName, gameMap)
cache.SetData(user.Cache, packageName, gameMap)
// 写入到数据库
result := connection.GetUserDB().Create(&game) // 通过数据的指针来创建