This commit is contained in:
biss committed 2026-07-23 21:23:52 +08:00
1 parent 6fd468d9e0
commit 25a63c67e6
60 files changed
+3122 -4408

No files matched your search

+2 -2
View File
@@ -98,14 +98,14 @@ dotnet run --project .\src\Eis.Web\Eis.Web.csproj
打开 <http://127.0.0.1:4173>。 打开 <http://127.0.0.1:4173>。
日常开发主页时,可以让 ASP.NET Core 继续监听 `4173`,另开一个终端启动 Vite: 日常开发前端时,可以让 ASP.NET Core 继续监听 `4173`,另开一个终端启动 Vite:
```powershell ```powershell
Set-Location .\src\Eis.Web\ClientApp Set-Location .\src\Eis.Web\ClientApp
npm run dev npm run dev
``` ```
然后打开 <http://127.0.0.1:5173>。Vite 会把 API、旧业务模块、CKEditor 和基础样式代理到 ASP.NET Core。当前采用渐进式迁移:Vue 已接管应用入口与公开首页;考生中心、管理后台、招生学校端及其他公开子页继续通过兼容入口按需加载,业务行为保持不变。生产构建输出到 `src/Eis.Web/wwwroot/vue-app`,不得手工修改该目录中的文件。 然后打开 <http://127.0.0.1:5173>。Vite 会把 API 和 PDF 文书生成模块代理到 ASP.NET Core。前端已整体迁移为 Vue 3 单页应用,使用 Vue Router History 模式;公开服务、考生中心、管理后台和招生学校端均使用独立的语义化 URL。生产构建输出到 `src/Eis.Web/wwwroot/vue-app`,不得手工修改该目录中的文件。
账户可在“账户安全”中启用 TOTP 二次验证。生产环境必须设置至少 32 个字符的 `TOTP_ENCRYPTION_KEY`;该值用于加密 TOTP 密钥并保护恢复码哈希,部署后必须稳定保存,不能随意更换。本地开发未设置时会使用仅适合开发的稳定派生值。 账户可在“账户安全”中启用 TOTP 二次验证。生产环境必须设置至少 32 个字符的 `TOTP_ENCRYPTION_KEY`;该值用于加密 TOTP 密钥并保护恢复码哈希,部署后必须稳定保存,不能随意更换。本地开发未设置时会使用仅适合开发的稳定派生值。
@@ -99,7 +99,7 @@ internal sealed partial class CandidateService
item["noticeVerificationCode"] = verificationCode; item["noticeVerificationCode"] = verificationCode;
item["noticeVerificationQr"] = verificationCode.Length == 0 item["noticeVerificationQr"] = verificationCode.Length == 0
? string.Empty ? string.Empty
: CreateQrCodeDataUrl($"{verificationBaseUrl}/#verify/{Uri.EscapeDataString(verificationCode)}"); : CreateQrCodeDataUrl($"{verificationBaseUrl}/verify/{Uri.EscapeDataString(verificationCode)}");
item["noticeNumber"] = AdmissionText(placement?.Payload["noticeNumber"]); item["noticeNumber"] = AdmissionText(placement?.Payload["noticeNumber"]);
item["plans"] = new JsonArray(plans.Select(plan => (JsonNode)plan).ToArray()); item["plans"] = new JsonArray(plans.Select(plan => (JsonNode)plan).ToArray());
item["supplementEligible"] = supplementEligible; item["supplementEligible"] = supplementEligible;
@@ -57,7 +57,7 @@ internal sealed partial class CandidateService
.Select(item => new ScoreSignatureItem(item.SubjectId, item.Score, item.PublishedAt, item.UpdatedAt)); .Select(item => new ScoreSignatureItem(item.SubjectId, item.Score, item.PublishedAt, item.UpdatedAt));
var code = documentCodes.ScoreReportCode(registration.Id, registration.UserId, exam.Id, reportResults); var code = documentCodes.ScoreReportCode(registration.Id, registration.UserId, exam.Id, reportResults);
summary["verificationCode"] = code; summary["verificationCode"] = code;
summary["verificationQr"] = CreateQrCodeDataUrl($"{verificationBaseUrl}/#verify/{Uri.EscapeDataString(code)}"); summary["verificationQr"] = CreateQrCodeDataUrl($"{verificationBaseUrl}/verify/{Uri.EscapeDataString(code)}");
summaries.Add(summary); summaries.Add(summary);
} }
Loaded 3 of 60 files, more files were not shown because too many files have changed in this diff. Show more