public object Locks(string[] values, bool IsLock)
        {
            var json = new ResJson()
            {
                success = false
            };

            try
            {
                if (values != null && values.Length > 0)
                {
                    var locked = IsLock ? 0 : 1;
                    if (sysAdminService.ExecuteSql("UPDATE SYSADMINS SET IsCanLogin = "******" WHERE GUID IN ('" + string.Join("','", values) + "')") > 0)
                    {
                        json.message = IsLock?"锁定成功!":"解锁成功!";
                        json.success = true;
                    }
                    else
                    {
                        json.message = IsLock? "锁定失败!":"解锁失败!";
                    }
                }
                else
                {
                    json.message = "操作失败!";
                }
            }
            catch (Exception ex)
            {
                json.message = "网络超时.";
                throw ex;
            }

            return(json);
        }