Example #1
0
        /// <summary>
        /// 会员详细信息
        /// </summary>
        /// <returns></returns>
        public string GetVipDetail()
        {
            var loggingSessionInfo = Default.GetLjLoggingSession();

            //根据客户标识获取连接字符串  qianzhi  2013-07-30
            if (!string.IsNullOrEmpty(Request["customerId"]))
            {
                loggingSessionInfo = Default.GetBSLoggingSession(Request["customerId"].Trim(), "");
            }
            string content = string.Empty;
            GetResponseParams <VipEntity> response = new GetResponseParams <VipEntity>();

            response.Code        = "200";
            response.Description = "操作成功";
            try
            {
                string Weixin = Request["Weixin"].ToString().Trim();
                VipBLL vipBll = new VipBLL(loggingSessionInfo);
                response.Params = vipBll.GetVipDetail(Weixin);
            }
            catch (Exception ex)
            {
                response.Code        = "201";
                response.Description = "失败" + ex.ToString();
            }
            content = string.Format("{{\"Description\":\"{2}\",\"Code\":\"{1}\",\"Vip\":{0}}}",
                                    response.Params.ToJSON(), response.Code, response.Description);
            return(content);
        }