瀏覽代碼

生成接口content参数传对象

lichunlei 4 月之前
父節點
當前提交
66cbf5c22b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Feign/IMake.cs

+ 1 - 1
Feign/IMake.cs

@@ -9,7 +9,7 @@ namespace Feign
         public static string makeFile(string data)
         {
             string url = Utils.FeignUrl["omega_make"] + "/v1/omega_make/vscode/makeFile";
-            string content = Function.PostWebRequest(url, "{\"content\":\"" + data + "\"}", "application/json");
+            string content = Function.PostWebRequest(url, "{\"content\":" + data + "}", "application/json");
             JsonData jsonObj = JsonMapper.ToObject(content);
             if(jsonObj["status"].ToString() == "1")
             {