Просмотр исходного кода

同步生成文件用redis传值

lichunlei 3 месяцев назад
Родитель
Сommit
e075457465
1 измененных файлов с 3 добавлено и 3 удалено
  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")]
         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);
         }