public object UniversityIs985Or211(string uniName) { try { var re = UniversityServer.UniversityIs985Or211(uniName); return(re); } catch (Exception e) { return(new[] { e.Message }); } }
public object UniversityIs985Or211(string uniName) { try { var addr = Server.GetUserIp(Request.HttpContext); if (Server.IPHandle(addr) == 0) { return(new[] { "your ip can't using our api , please contact administrator" }); } var re = UniversityServer.UniversityIs985Or211(uniName); return(re); } catch (Exception e) { return(new[] { e.Message }); } }