Пример #1
0
        public object UniversityIs985Or211(string uniName)
        {
            try
            {
                var re = UniversityServer.UniversityIs985Or211(uniName);

                return(re);
            }
            catch (Exception e)
            {
                return(new[] { e.Message });
            }
        }
Пример #2
0
        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 });
            }
        }