コード例 #1
0
 public IActionResult getService(string service_name)
 {
     //get 获取name参数方法二
     // var name = Request.Query["service_name"].ToString();
     try
     {
         return(ResponseAjax(200, 200, "getService successful", Config.Instance, SRC.GetService(service_name)));
     }
     catch (Exception e)
     {
         LogHelper.Error(e, Config.logName);
         return(ResponseAjax(500, 500, "Server exception! Please contact the administrator", Config.Instance));
     }
 }