public ActionResult Index() { FansInfo Fans = Session["FansInfo"] as FansInfo; Fans = Fans == null ? new FansInfo() { Nickname = "当前粉丝异常" } : Fans; if (_custMember.ChckBind(Fans.Openid)) { //如果该粉丝已经绑定了会员,则直接进入到会员详情界面 return(Redirect("ShowMemberInfo.do")); } return(View(Fans)); }
public ActionResult Index() { FansInfo Fans = Session["FansInfo"] as FansInfo; if (!_custMember.ChckBind(Fans.Openid)) { //如果该粉丝已经绑定了会员,则直接进入到会员详情界面 return(Redirect("/BcjMember/Index.do")); } MemberInfo meberinfo = _custMember.GetMemberInfo(Fans.Openid, ""); ViewBag.MemberID = meberinfo.Member_Id; ViewBag.GropuID = "1"; return(View()); }