一波更新
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
||||
"common/remark"
|
||||
"common/resultStatus"
|
||||
"common/webServer"
|
||||
"logincenter/internal/user"
|
||||
"usercenter/internal/user"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
||||
@@ -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) // 通过数据的指针来创建
|
||||
|
||||
Reference in New Issue
Block a user