/// <summary> /// 买家QQ邮箱是否存在 /// </summary> /// <param name="Email"></param> /// <returns></returns> protected string EmailVa_QQ(string Email_QQ) { string RegStr = ""; YXShop.BLL.Member.MemberAccount bll = new YXShop.BLL.Member.MemberAccount(); string parm = ChangeHope.Common.StringHelper.InputTexts(Email_QQ); SOSOshop.BLL.SysParameter sp = new SOSOshop.BLL.SysParameter(); if (sp.ForbidUserId != "") { string[] strForbid = sp.ForbidUserId.Split(','); foreach (string str in strForbid) { if (parm.IndexOf(str) > -1) { RegStr = "您输入中包含非法字符!"; break; } } } if (bll.ExistEmail_QQ(parm)) { RegStr = "您输入的QQ邮箱已存在,请另输入新的QQ邮箱!"; } return(RegStr); }
/// <summary> /// 买家是否存在 /// </summary> /// <param name="UserName"></param> /// <returns></returns> protected string UserVa(string UserName) { string RegStr = ""; YXShop.BLL.Member.MemberAccount bll = new YXShop.BLL.Member.MemberAccount(); string parm = ChangeHope.Common.StringHelper.InputTexts(UserName); SOSOshop.BLL.SysParameter sp = new SOSOshop.BLL.SysParameter(); if (sp.ForbidUserId != "") { string[] strForbid = sp.ForbidUserId.Split(','); foreach (string str in strForbid) { if (parm.IndexOf(str) > -1) { RegStr = "您设置的买家名为非法买家名!"; break; } } } if (bll.Exists(parm)) { RegStr = "您设置的买家名已存在,请另输入买家名!"; } return(RegStr); }
public static bool CheckAdmin() { AdminInfo admin = (AdminInfo)Get(); if (admin == null) { SysParameter sp = new SysParameter(); ChangeHope.WebPage.Script.Alert("提示:您未登陆或登陆时间已过期,转向登录页面"); ChangeHope.WebPage.Script.ParentPageRedirect(sp.DummyPaht + "admin/index.aspx"); return(false); } else { return(true); } }