Explorar o código

请求参数编码

lichunlei hai 3 meses
pai
achega
8905fd4600
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      Controllers/Feign/VsCodeController.cs

+ 4 - 1
Controllers/Feign/VsCodeController.cs

@@ -1,4 +1,5 @@
-using Attribute;
+using System.Web;
+using Attribute;
 using Base;
 using Common;
 using Dto;
@@ -164,6 +165,8 @@ namespace Controllers.Feign
         [HttpPost("/v1/omega_make/vscode/makeFile")]
         public IActionResult makeFile([FromBody] MakeFileDto para)
         {
+            Function.WriteLog(Newtonsoft.Json.JsonConvert.SerializeObject(para), "vscode生成文件接收");
+            para.content = HttpUtility.UrlDecode(para.content);
             string res = MakeHelper.Instance.DoQueue(para.content);
             return SUCCESS(res);
         }