예제 #1
0
        public static async Task <IActionResult> geturl([HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = null)] HttpRequest req, ILogger log)
        {
            string customerid = req.Query["customerid"];

            customerid = customerid ?? "";

            string ClientIP = req.HttpContext.Connection.RemoteIpAddress.ToString();

            Base.SetValidIP(ClientIP);
            Base.WriteLog("Get URL", ClientIP, 1000, customerid);
            return(new OkObjectResult(Base.GetURL(customerid, ClientIP)));
        }