示例#1
0
 public string WeixinConPass(string openid, int comid)
 {
     using (var helper = new SqlHelper())
     {
         var crmid = new InternalB2bCrm(helper).WeixinConPass(openid, comid);
         return(crmid.ToString());
     }
 }
示例#2
0
        public string RegAccount(string card, string phone, string name, string password1, int comid, int channelid)
        {
            using (var helper = new SqlHelper())
            {
                var crmid = new InternalB2bCrm(helper).RegAccount(card, phone, name, password1, comid, channelid);

                return(crmid.ToString());
            }
        }
示例#3
0
        public string WeixinRegCard(string card, string openid, string password1, string name, string phone, int comid, int channelid)
        {
            using (var helper = new SqlHelper())
            {
                var crmid = new InternalB2bCrm(helper).WeixinRegCard(card, openid, password1, name, phone, comid, channelid);

                return(crmid.ToString());
            }
        }
示例#4
0
        public string UserUnlockPhone(string openid, int comid)
        {
            using (var helper = new SqlHelper())
            {
                var crmid = new InternalB2bCrm(helper).UserUnlockPhone(openid, comid);

                return(crmid.ToString());
            }
        }
示例#5
0
        public string weiUpMember(B2b_crm b2binfo)
        {
            using (var helper = new SqlHelper())
            {
                var crmid = new InternalB2bCrm(helper).weiUpMember(b2binfo);

                return(crmid.ToString());
            }
        }
示例#6
0
        public string RegCard(string card, string email, string password1, string name, string phone, int comid, string sex)
        {
            using (var helper = new SqlHelper())
            {
                var crmid = new InternalB2bCrm(helper).RegCard(card, email, password1, name, phone, comid, sex);

                return(crmid.ToString());
            }
        }
示例#7
0
        //初始会员密码
        public string initialuser(B2b_crm b2binfo)
        {
            using (var helper = new SqlHelper())
            {
                var crmid = new InternalB2bCrm(helper).initialuser(b2binfo);

                return(crmid.ToString());
            }
        }
示例#8
0
        public string WeixinSetPass(string openid, int comid)
        {
            string password1 = "123456";
            Random ra        = new Random();
            int    num       = ra.Next(100000, 1000000);
            int    num2      = ra.Next(100000, 1000000);

            password1 = Convert.ToDouble(num.ToString() + num2.ToString()).ToString();//获取12位随机微信密码

            using (var helper = new SqlHelper())
            {
                var crmid = new InternalB2bCrm(helper).WeixinSetPass(openid, password1, comid);
                return(crmid.ToString());
            }
        }