/// <summary> /// 根据被加密过的UserCode返回用户信息实体 /// </summary> /// <param name="EnUSERCODE">被加密过的UserCode</param> /// <returns></returns> public static Psd.H5Show.Model.user_account GetUserCodeToUseraccountModel(string EnUSERCODE) { string UserCode = DEncrypt.Decrypt(EnUSERCODE); object obj = new Psd.H5Show.BLL.user_account().GetModelList(string.Format("USERCODE='{0}'", UserCode))[0]; if (obj != null) { return(obj as Psd.H5Show.Model.user_account); } else { return(null); } }
/// <summary> /// Determines whether [is member application] [the specified user code]. /// </summary> /// <param name="userCode">The user code.</param> /// <param name="appId">The application identifier.</param> /// <returns> /// <c>true</c> if [is member application] [the specified user code]; otherwise, <c>false</c>. /// </returns> public static bool IsMemberApp(string userCode, int appId) { bool isauth = false; DataSet dataSet = new Psd.H5Show.BLL.user_account().GetList("DELFLAG=0 and USERCODE = '" + userCode + "'"); if (dataSet.Tables[0].Rows.Count > 0) { if (new Psd.H5Show.BLL.appbase().GetList("DELFLAG=0 and ID=" + appId + " and UID=" + dataSet.Tables[0].Rows[0]["ID"]).Tables[0].Rows.Count > 0) { isauth = true; } } return(isauth); }