public void UpdateMemberCard()
 {
     using (var fs = GetInputFile("qrcode.jpg"))
     {
         var result = _weChatApi.UploadImage("qrcode.jpg", fs);
         if (!result.IsSuccess())
         {
             Assert.Fail("上传图片失败,返回结果如下:" + result.DetailResult + ";Msg:" + result.GetFriendlyMessage());
         }
         UpdateCardRequest cardInfo = new UpdateCardRequest()
         {
             CardId     = "p4vD1v3TpOqqPlPW2N4Hkq2ejx-c",
             MemberCard = new MemberCardUpdate()
             {
                 Background_pic_url = result.Url,
                 UpdateBaseInfo     = new UpdateBaseInfo()
                 {
                     Logo_url      = result.Url,
                     Color         = "Color010",
                     Notice        = "使用时向服务员出示此券",
                     Service_phone = "020-88888888",
                     Description   = "会员卡,到店消费请出示此卡!",
                     //Date_info = new FixTimeRangeDateInfo()
                     //{
                     //    BeginTime = DateTime.Now,
                     //    EndTime = DateTime.Now.AddYears(33),
                     //},
                     GetLimit                = 1,
                     Can_share               = true,
                     Can_give_friend         = true,
                     Location_id_list        = "123,12321,345345",
                     Center_title            = "顶部居中按钮",
                     Center_sub_title        = "按钮下方的wording",
                     Center_url              = "http://xin-lai.com",
                     Custom_url_name         = "立即使用",
                     Custom_url              = "http://xin-lai.com",
                     Custom_url_sub_title    = "6个汉字tips",
                     Promotion_url_name      = "更多优惠",
                     Promotion_url           = "http://xin-lai.com",
                     Promotion_url_sub_title = "美团"
                 },
                 CustomField1 = new CustomField()
                 {
                     NameType = NameTypes.FIELD_NAME_TYPE_LEVEL,
                     Url      = "http://www.baidu.com"
                 },
                 WxActivate   = true,
                 SupplyBonus  = false,
                 Prerogative  = "测试会员卡",
                 AutoActivate = true,
                 //ActivateUrl = "http://www.baidu.com",
                 CustomCell1 = new CustomCell()
                 {
                     Name = "使用入口",
                     Tips = "立即使用",
                     Url  = "http://www.baidu.com"
                 },
                 Discount = 10
             }
         };
         var obj = JsonConvert.SerializeObject(cardInfo);
         Console.Write(obj);
         var cardResult = _weChatApi.UpdateMemberCard(cardInfo);
         if (!cardResult.IsSuccess())
         {
             Assert.Fail("修改会员卡失败,返回结果如下:" + cardResult.DetailResult + ";Msg:" + cardResult.GetFriendlyMessage());
         }
     }
 }