예제 #1
0
        //微信编辑个人信息
        public static string weiUpMember(int comid, decimal cardcode, string Name, string Phone, string Sex, DateTime Birthday, decimal code)
        {
            try
            {
                var prodata = new B2bCrmData();
                var pro     = "";
                var list    = Phone_code.code_info(decimal.Parse(Phone), comid);
                if (code == list.Code)
                {
                    //把返佣日志录入渠道返佣日志表
                    B2b_crm b2bcrm = new B2b_crm()
                    {
                        Idcard   = cardcode,
                        Name     = Name,
                        Phone    = Phone,
                        Sex      = Sex,
                        Birthday = Birthday,
                        Com_id   = comid
                    };
                    pro = prodata.weiUpMember(b2bcrm);
                }
                else
                {
                    pro = "验证码错误";
                }

                return(JsonConvert.SerializeObject(new { type = 100, msg = pro }));
            }
            catch (Exception ex)
            {
                return(JsonConvert.SerializeObject(new { type = 1, msg = ex.Message }));

                throw;
            }
        }