From 6a4e42f9dcc0257d6d0be0179f9ee23f3ec77491 Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Mon, 18 Sep 2023 11:42:14 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9cookie=20=E6=B5=8B=E8=AF=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
IRaCIS.Core.API/Controllers/ExtraController.cs | 4 ++--
IRaCIS.Core.API/Properties/launchSettings.json | 2 +-
.../IRaCIS.Core.Application.xml | 14 ++++++++++++++
3 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/IRaCIS.Core.API/Controllers/ExtraController.cs b/IRaCIS.Core.API/Controllers/ExtraController.cs
index d5d0d43b1..3722593db 100644
--- a/IRaCIS.Core.API/Controllers/ExtraController.cs
+++ b/IRaCIS.Core.API/Controllers/ExtraController.cs
@@ -118,8 +118,8 @@ namespace IRaCIS.Api.Controllers
{
Expires = DateTime.Now.AddMonths(1),
HttpOnly = true, // 确保 cookie 只能通过 HTTP 访问
- SameSite = Microsoft.AspNetCore.Http.SameSiteMode.None, // 设置 SameSite 属性
- Secure = true // 确保 cookie 只能通过 HTTPS 访问
+ SameSite = Microsoft.AspNetCore.Http.SameSiteMode.Unspecified, // 设置 SameSite 属性
+ Secure = false // 确保 cookie 只能通过 HTTPS 访问
};
HttpContext.Response.Cookies.Append("access_token", returnModel.Data.JWTStr, option);
diff --git a/IRaCIS.Core.API/Properties/launchSettings.json b/IRaCIS.Core.API/Properties/launchSettings.json
index 17680827f..6736bd9b9 100644
--- a/IRaCIS.Core.API/Properties/launchSettings.json
+++ b/IRaCIS.Core.API/Properties/launchSettings.json
@@ -21,7 +21,7 @@
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Test_Study"
},
- "applicationUrl": "http://localhost:6000"
+ "applicationUrl": "http://localhost:6100"
}
}
}
\ No newline at end of file
diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
index 0f8fd807d..587a426ad 100644
--- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
+++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
@@ -10558,6 +10558,20 @@
替换当前领取人
+
+
+ 领取下一个质控任务
+
+
+
+
+
+
+ 获取下一个质控任务
+
+
+
+
手动领取 或者取消 QC任务