diff --git a/SGGL/FineUIPro.Web/AttachFile/OnlineEditing.aspx b/SGGL/FineUIPro.Web/AttachFile/OnlineEditing.aspx index daefa1df..0eb3059d 100644 --- a/SGGL/FineUIPro.Web/AttachFile/OnlineEditing.aspx +++ b/SGGL/FineUIPro.Web/AttachFile/OnlineEditing.aspx @@ -132,6 +132,9 @@ 'UrlStr': url, 'PCUrl': '<%=PCUrl%>', }, + headers: { + 'token': '<%=UserId%>' + }, dataType: 'json', async: false, success: function (json) { diff --git a/SGGL/WebAPI/Controllers/FileUploadController.cs b/SGGL/WebAPI/Controllers/FileUploadController.cs index 34b8a710..b10f6848 100644 --- a/SGGL/WebAPI/Controllers/FileUploadController.cs +++ b/SGGL/WebAPI/Controllers/FileUploadController.cs @@ -153,7 +153,7 @@ namespace WebAPI.Controllers HttpClient _httpClient = new HttpClient(); try { - System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; + // System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; // 发送 GET 请求以获取文件内容 var response = await _httpClient.GetAsync(toDoItem.UrlStr); response.EnsureSuccessStatusCode();