| 12345678910111213141516171819202122 |
- using System.Web;
- using Common;
- using Custom;
- using LitJson;
- namespace Feign
- {
- public class IMake
- {
- public static string makeFile(string data)
- {
- string url = Utils.FeignUrl["omega_make"] + "/v1/omega_make/vscode/makeFile";
- string content = Function.PostWebRequest(url, "{\"content\":\"" + HttpUtility.UrlEncode(data) + "\"}", "application/json");
- JsonData jsonObj = JsonMapper.ToObject(content);
- if(jsonObj["status"].ToString() == "1")
- {
- return jsonObj["data"].ToString();
- }
- return "";
- }
- }
- }
|