This commit is contained in:
tanglong 2026-08-18 16:22:44 +08:00
parent 3049d37ca4
commit cc46b2e039
2 changed files with 6 additions and 1 deletions

View File

@ -19,7 +19,7 @@ namespace YD_XinWei.Api
{ {
serverOptions.Limits.MaxRequestBodySize = 10485760; serverOptions.Limits.MaxRequestBodySize = 10485760;
}); });
webBuilder.UseKestrel().UseUrls("http://*:9994"); webBuilder.UseKestrel().UseUrls("http://*:9995");
webBuilder.UseIIS(); webBuilder.UseIIS();
webBuilder.UseStartup<Startup>(); webBuilder.UseStartup<Startup>();
}).UseServiceProviderFactory(new AutofacServiceProviderFactory()); }).UseServiceProviderFactory(new AutofacServiceProviderFactory());

View File

@ -391,6 +391,11 @@ namespace YD_XinWei.Api.Services.Impl
stu.Achievement = stu.Achievement.HasValue ? Math.Round(stu.Achievement.Value / 1000.0, 2) - 0.5 : 0; stu.Achievement = stu.Achievement.HasValue ? Math.Round(stu.Achievement.Value / 1000.0, 2) - 0.5 : 0;
} }
if (dto.ProjectId == 2)
{
// 除以1000再除以60,保留两位小数
stu.Achievement = stu.Achievement.HasValue ? Math.Round(stu.Achievement.Value / 1000.0 / 60, 2) : 0;
}
if (dto.ProjectId == 21) if (dto.ProjectId == 21)
{ {