diff --git a/WGShare.API/Controllers/AuthController.cs b/WGShare.API/Controllers/AuthController.cs index d2eeac6..0516ad6 100644 --- a/WGShare.API/Controllers/AuthController.cs +++ b/WGShare.API/Controllers/AuthController.cs @@ -104,7 +104,7 @@ namespace WGShare.API.Controllers /// /// [HttpPost("refresh"), AllowAnonymous] - public async Task Refresh([FromBody] string refreshToken) + public async Task Refresh([FromQuery] string refreshToken) { var user = RedisHelper.Instance.Get(refreshToken); if (user == null || string.IsNullOrWhiteSpace(user.Id)) diff --git a/WGShare.API/Controllers/Frontend/UserController.cs b/WGShare.API/Controllers/Frontend/UserController.cs index 1c41231..1bdbd06 100644 --- a/WGShare.API/Controllers/Frontend/UserController.cs +++ b/WGShare.API/Controllers/Frontend/UserController.cs @@ -44,6 +44,7 @@ namespace WGShare.API.Controllers.Frontend .WhereIF(!string.IsNullOrWhiteSpace(searchKeywod), (u, r) => u.UserName.Contains(searchKeywod) || u.Account.Contains(searchKeywod)) .WhereIF(isOnline.HasValue && isOnline.Value == true, (u, r) => onlineUid.Contains(u.Id)) .WhereIF(isOnline.HasValue && isOnline.Value == false, (u, r) => !onlineUid.Contains(u.Id)) + .OrderBy(u => u.Id, OrderByType.Desc) .Select((u, r) => new UserOutputDTO { Id = u.Id, diff --git a/WGShare.API/appsettings.Development.json b/WGShare.API/appsettings.Development.json index a74911f..23a1824 100644 --- a/WGShare.API/appsettings.Development.json +++ b/WGShare.API/appsettings.Development.json @@ -17,6 +17,6 @@ "Issuer": "WGshareApi", "Audience": "WGshareClient", // 过期 秒 - "Expires": 600 + "Expires": 86400 } } diff --git a/WGShare.API/appsettings.json b/WGShare.API/appsettings.json index 1e5e164..cc130ac 100644 --- a/WGShare.API/appsettings.json +++ b/WGShare.API/appsettings.json @@ -11,7 +11,7 @@ "Issuer": "WGshareApi", "Audience": "WGshareClient", // 过期 秒 - "Expires": 3600 + "Expires": 86400 }, "ConnectionStrings": { "metting": "Database=metting;Server=192.168.2.9;Port=3306;Uid=root;Pwd=qwe123!@#;AllowZeroDateTime=True;ConvertZeroDateTime=True;",