Prechádzať zdrojové kódy

同步生成文件用redis传值

lichunlei 6 mesiacov pred
rodič
commit
e075457465
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 3 3
      Controllers/Feign/VsCodeController.cs

+ 3 - 3
Controllers/Feign/VsCodeController.cs

@@ -165,9 +165,9 @@ namespace Controllers.Feign
         [HttpPost("/v1/omega_make/vscode/makeFile")]
         [HttpPost("/v1/omega_make/vscode/makeFile")]
         public IActionResult makeFile([FromBody] MakeFileDto para)
         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, false);
+            string requestId = HttpUtility.UrlDecode(para.content);
+            string content = RedisServer.Cache.Get("MakeData:" + requestId);
+            string res = MakeHelper.Instance.DoQueue(content, false);
             return SUCCESS(res);
             return SUCCESS(res);
         }
         }