mirror of
https://github.com/KaySar12/NextZen-UserService.git
synced 2025-10-06 19:59:42 +07:00
update
This commit is contained in:
@@ -63,7 +63,7 @@ func EventListen() {
|
||||
if event.Name == "local-storage:raid_status" {
|
||||
continue
|
||||
}
|
||||
service.MyService.Event().CreateEvemt(model)
|
||||
service.MyService.Event().CreateEvent(model)
|
||||
// logger.Info("info", zap.Any("写入信息1", model))
|
||||
// output, err := json.MarshalIndent(event, "", " ")
|
||||
// if err != nil {
|
||||
|
||||
@@ -31,7 +31,6 @@ func InitRouter() *gin.Engine {
|
||||
r.POST("/v1/users/logout", v1.PostLogout)
|
||||
r.GET("/v1/users/name", v1.GetUserAllUsername) // all/name
|
||||
r.POST("/v1/users/refresh", v1.PostUserRefreshToken)
|
||||
// No short-term modifications
|
||||
r.GET("/v1/users/image", v1.GetUserImage)
|
||||
r.GET("/v1/users/:username", v1.GetUserInfoByUsername)
|
||||
r.GET("/v1/users/status", v1.GetUserStatus) // init/check
|
||||
|
||||
+2
-2
@@ -46,7 +46,7 @@ var (
|
||||
baseURL = "https://auth.c14soft.com"
|
||||
clientID = "6KwKSxLCtaQ4r6HoAn3gdNMbNOAf75j3SejLIAx7"
|
||||
clientSecret = "PE05fcDP4qESUmyZ1TNYpZNBxRPq70VpFI81vehsoJ6WhGz5yPXMljrFrOdMRdRhrYmF03fHWTZHgO9ZdNENrLN13BzL8CAgtEkTsyjXfgx9GvISheIjYfpSfvo219fL"
|
||||
authURL = "https://auth.c14soft.com/application/o/nextzenos-oidc/" //
|
||||
authURL = "https://auth.c14soft.com/application/o/nextzenos-oidc/"
|
||||
callbackURL = "http://172.26.157.79:8080/v1/users/oidc/callback"
|
||||
)
|
||||
|
||||
@@ -331,7 +331,7 @@ func generateTokens(user model2.UserDBModel) (system_model.VerifyInformation, er
|
||||
return system_model.VerifyInformation{
|
||||
AccessToken: accessToken,
|
||||
RefreshToken: refreshToken,
|
||||
ExpiresAt: time.Now().Add(3 * time.Hour).Unix(),
|
||||
ExpiresAt: time.Now().Add(3 * time.Hour * time.Duration(1)).Unix(),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user