fix jip token

This commit is contained in:
2024-11-26 16:06:59 +08:00
parent b1292e4653
commit 1f273986e0
2 changed files with 3 additions and 17 deletions

View File

@@ -42,6 +42,8 @@ public class JipTokenHandler : IAsyncAuthTokenHandler
var jwtHandler = new JwtSecurityTokenHandler();
var securityToken = jwtHandler.CreateToken(descriptor);
return await Task.FromResult(jwtHandler.WriteToken(securityToken));
var token = await Task.FromResult(jwtHandler.WriteToken(securityToken));
return "Bearer " + token;
}
}

View File

@@ -22,20 +22,4 @@ public class Startup : DefaultStartup
base.ConfigureServices(services);
services.AddRedis();
}
/// <inheritdoc />
public override void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
base.Configure(app, env);
// var a = app.ApplicationServices.GetService<IJinkoJipApi>().SyncMealSupplementRecordsAsync(new List<SyncMealSupplementRecordRequest>()
// {
// new SyncMealSupplementRecordRequest
// {
// UniqueId = null,
// Status = null,
// Msg = null
// }
// }).GetAwaiter().GetResult();
}
}