[AllowAnonymous]//可以匿名访问 public string TestGet() { var listUser = _ISysUserInfoServices.GetAllWithProject().ToList(); return("ok"); }