/// <summary> /// 获取授权完后要去的网址 /// </summary> /// <param name="nonceCode">随机码</param> /// <param name="afterDel">获取完后是否删除</param> /// <returns>目标URL</returns> public string GetOAuthUrl(string nonceCode, bool afterDel = true) { string url = dal.GetOAuthUrl(nonceCode); if (afterDel) { dal.DelOAuthUrl(nonceCode); } string datakey = "OAUTH_" + nonceCode; string _bakUrl = CookieHelper.GetCookieVal("OAUTH_" + nonceCode); if (!string.IsNullOrEmpty(_bakUrl) && url == "") { url = _bakUrl; } CookieHelper.DelCookieVal(datakey); return(url); }
/// <summary> /// 执行登录 /// </summary> public virtual void DoLoginOut() { CookieHelper.DelCookieVal(LM_MANAGER_KEY); CookieHelper.DelCookieVal(LM_MANAGER_ROLE_KEY); }