发版测试 #2

Merged
yangqiang merged 1 commits from dev into staging 2024-03-29 14:16:25 +08:00
3 changed files with 4 additions and 3 deletions

View File

@ -47,7 +47,7 @@ public class ExamManager : DomainService, IExamManager
public async Task ExamStudentGather(ExamStudentGatherEto eto) public async Task ExamStudentGather(ExamStudentGatherEto eto)
{ {
var penSerial = eto.StudentExamNum; var penSerial = eto.StudentExamNum;
Logger.LogInformation("{ExamSubjectId} {penSerial} 开始收集...", eto.ExamSubjectId, penSerial); Logger.LogInformation($"开始收集... 参数:{JsonConvert.SerializeObject(eto)}");
var guid = GuidGenerator.Create().ToString("N"); var guid = GuidGenerator.Create().ToString("N");
var templates = await Db.Queryable<GroupBookPaperTemplate>().Where(w => w.BookId == eto.BookId) var templates = await Db.Queryable<GroupBookPaperTemplate>().Where(w => w.BookId == eto.BookId)

View File

@ -12,6 +12,6 @@ public class ExamAppService : DolphinAppService
public async Task Test() public async Task Test()
{ {
await _examManager.ExamStudentGather(new() { SchoolId = 1, StudentExamNum = "BP2-3G3-07K-BZ", BookId = 528102717276229, ExamSubjectSchoolId = 528066671910982, ExamSubjectId = 528066655817797, LastCollectTime = DateTime.Now }); await _examManager.ExamStudentGather(new() { SchoolId = 3, StudentExamNum = "BP2-3G3-07K-C1", BookId = 529493484986437, ExamSubjectSchoolId = 530151338438726, ExamSubjectId = 530151329325125, LastCollectTime = DateTime.Now });
} }
} }

View File

@ -1,4 +1,4 @@
using Serilog; using Serilog;
using Serilog.Events; using Serilog.Events;
namespace Dolphin.ExamPictureCut; namespace Dolphin.ExamPictureCut;
@ -28,6 +28,7 @@ public class Program
try try
{ {
Log.Information("Starting Dolphin.ExamPictureCut.HttpApi.Host."); Log.Information("Starting Dolphin.ExamPictureCut.HttpApi.Host.");
Log.Information("Current Env:" + Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT"));
var builder = WebApplication.CreateBuilder(args); var builder = WebApplication.CreateBuilder(args);
builder.Host.AddAppSettingsSecretsJson() builder.Host.AddAppSettingsSecretsJson()
.UseAutofac() .UseAutofac()