update 20250505
This commit is contained in:
@@ -51,6 +51,23 @@ namespace ILMocup.Controllers
|
||||
return Content(HttpStatusCode.OK, rs);
|
||||
}
|
||||
|
||||
public IHttpActionResult Revision()
|
||||
{
|
||||
string json = "";
|
||||
string rs = RandomString(6);
|
||||
if (HttpContext.Current.Request.InputStream.Length > 0)
|
||||
{
|
||||
using (var inputStream = new StreamReader(HttpContext.Current.Request.InputStream))
|
||||
{
|
||||
json = inputStream.ReadToEnd();
|
||||
}
|
||||
}
|
||||
string filename = @"X:\jsontemp\ILMockup" + @"\Revision_" + DateTime.Now.ToString("yyyyMMdd_hhmmss") + "_" + rs + ".json";
|
||||
System.IO.File.WriteAllText(filename, json);
|
||||
|
||||
|
||||
return Content(HttpStatusCode.OK, rs);
|
||||
}
|
||||
private static Random random = new Random();
|
||||
|
||||
public static string RandomString(int length)
|
||||
|
||||
Reference in New Issue
Block a user