Пример #1
0
        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);
        }
Пример #2
0
        public static bool CreateMember(MemberInfo member)
        {
            bool flag = new MemberDao().CreateMember(member);

            if (flag)
            {
                try
                {
                    Messenger.SendWeiXinMsg_MemberRegister(member);
                }
                catch (Exception)
                {
                }
                CouponProcessor.RegisterSendCoupon(member.SessionId);
            }
            return(flag);
        }