diff --git a/service/userService.go b/service/userService.go index 0584327..6207445 100644 --- a/service/userService.go +++ b/service/userService.go @@ -479,6 +479,7 @@ func SetUserUIConfigInfo(userID int, config proto.UserUIConfigInfo) error { } if userConfig.UserID == 0 { //没有则插入 + config.UserID = userID id, err2 := dao.CreateUserUIConfigInfo(config) if err2 != nil { log.Println("InsertUserUIConfigInfo error:", err)