|
|
@@ -110,5 +110,16 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
|
return Json(new AppResultJson() { Status = "1", Info = "" });
|
|
|
}
|
|
|
#endregion
|
|
|
+
|
|
|
+
|
|
|
+ [Route("/api/v1/{c1}/{c2}")]
|
|
|
+ public JsonResult ToApServer(string c1, string c2)
|
|
|
+ {
|
|
|
+ StreamReader sr = new StreamReader(Request.Body);
|
|
|
+ string requestMes = sr.ReadToEnd();
|
|
|
+ string url = AppConfig.Base.ApHost + "api/v1/" + c1 + "/" + c2 + "do";
|
|
|
+ string result = function.PostWebRequest(url, "value=" + requestMes);
|
|
|
+ return Json(new AppResultJson() { Status = "1", Data = result });
|
|
|
+ }
|
|
|
}
|
|
|
}
|