Sfoglia il codice sorgente

请求参数编码

lichunlei 3 mesi fa
parent
commit
8905fd4600
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  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);
         }