/// <summary> /// 关联绑定页面 /// </summary> public ActionResult WxBind() { mSysWxUser = JsonHelper.JsonToT <ModelSysWxUser>(HttpContextCore.GetSession(ComConst.Wx_ModelSysWxUser)); if (mSysWxUser != null && mSysWxUser.OpenId.Length > 6) { ViewBag.WxBindedJson = Service.GetWxBindedJson(mSysWxUser.OpenId); } return(View("Index_WxBind")); }
public BaseController() { mlUser = JsonHelper.JsonToT <ModelLoginUser>(HttpContextCore.GetSession(ComConst.UserLogin)); if (mlUser != null) { HttpContextCore.SetSession(ComConst.UserLogin, JsonHelper.ToJson(mlUser)); } mjResult = new ModelJsonRet() { code = 0, errMsg = string.Empty, content = string.Empty }; }
public AdminBaseController() { glbAdmin = JsonHelper.JsonToT <SYS_Admin>(HttpContextCore.GetSession(ComConst.AdminLogin)); if (glbAdmin != null) { HttpContextCore.SetSession(ComConst.AdminLogin, JsonHelper.ToJson(glbAdmin)); } mjResult = new ModelJsonRet() { code = 0, errMsg = string.Empty, content = string.Empty }; }
public BaseService() { if (null == mlUser) { mlUser = JsonHelper.JsonToT <ModelLoginUser>(HttpContextCore.GetCookie(ComConst.UserLogin)); if (mlUser == null) { mlUser = JsonHelper.JsonToT <ModelLoginUser>(HttpContextCore.GetSession(ComConst.UserLogin)); if (mlUser != null) { HttpContextCore.SetSession(ComConst.UserLogin, JsonHelper.ToJson(mlUser)); } } } mjRet = new ModelJsonRet { code = 0, }; }
public WxBaseController() { ViewBag.SchoolName = "陪绮在线"; mjResult = new ModelJsonRet() { code = 0, errMsg = string.Empty, content = string.Empty }; mSysWxUser = JsonHelper.JsonToT <ModelSysWxUser>(HttpContextCore.GetSession(ComConst.Wx_ModelSysWxUser)); if (mSysWxUser != null) { HttpContextCore.SetSession(ComConst.Wx_ModelSysWxUser, JsonHelper.ToJson(mSysWxUser)); if (mSysWxUser.School != null) { ViewBag.SchoolName = mSysWxUser.School.SchoolName; } } }
public ActionResult Index() { mSysWxUser = JsonHelper.JsonToT <ModelSysWxUser>(HttpContextCore.GetSession(ComConst.Wx_ModelSysWxUser)); return(View("Index_Center", mSysWxUser)); }