public string writenotice() { string username = HttpContext.User.Identity.Name; string content = Request["content"].ToString().Trim(); if (username == "") { return("请先登录"); } else { return(member.AddNotice(username, content)); } }