public static bool CreateMember(MemberInfo member) { MemberDao memberDao = new MemberDao(); bool flag = memberDao.CreateMember(member); if (flag) { SiteSettings masterSettings = SettingsManager.GetMasterSettings(true); if (member.UserId == 0) { Globals.Debuglog("没有UserID的注册身份" + member.SessionId, "_DebuglogReg.txt"); member = MemberProcessor.GetMember(member.SessionId); } bool flag2 = VshopBrowser.IsPassAutoToDistributor(member, true); if (flag2) { DistributorsBrower.MemberAutoToDistributor(member); } try { Messenger.SendWeiXinMsg_MemberRegister(member); } catch (Exception var_4_83) { } CouponProcessor.RegisterSendCoupon(member.SessionId); } return(flag); }
public static bool CreateMember(MemberInfo member) { MemberDao dao = new MemberDao(); if (dao.IsExitOpenId(member.OpenId)) { return(dao.SetMemberSessionId(member.SessionId, member.SessionEndTime, member.OpenId)); } return(dao.CreateMember(member)); }
public static bool CreateMember(MemberInfo member) { MemberDao dao = new MemberDao(); if (dao.GetOpenIdMember(member.OpenId) != null) { return(true); } else { return(dao.CreateMember(member)); } }
public static bool CreateMember(MemberInfo member) { MemberDao memberDao = new MemberDao(); bool flag = memberDao.CreateMember(member); if (flag) { try { Messenger.SendWeiXinMsg_MemberRegister(member); } catch (Exception var_2_25) { } CouponProcessor.RegisterSendCoupon(member.SessionId); } return(flag); }
public static bool CreateMember(MemberInfo member) { MemberDao dao = new MemberDao(); return(dao.CreateMember(member)); }