瑾冰

微信二维码显示和测试白名单

电脑版发表于:2019/12/18 11:27

 HttpClient httpClient = new HttpClient();

            var tempobj = new
            {
                action_name ="QR_CARD",
                action_info = new
                {
                    card = new
                    {
                        card_id = "pAA91wOF0uTNZDDfDe_94E1fU9o8" 注:这里id是指创建卡卷输出的id哦!
                    }
                }
            };
            string jsonstr = JsonConvert.SerializeObject(tempobj);

            StringContent stringContent = new StringContent(jsonstr);
            string result = httpClient.PostAsync("https://api.weixin.qq.com/card/qrcode/create?access_token=" +
              AccessTokenTools.GetToken(), stringContent).Result.Content.ReadAsStringAsync().Result;

            return Json(result, JsonRequestBehavior.AllowGet);

            var tempobj = new

            {

                openid =new List<string>()

                {

                    "oAA91wEn-ed1dSURUylWJtySMq6U", 

                    "oAA91wBK5ePB-XHe8ji1PfM_ty2k"//收到白明人的微信号

                }



            };


关于TNBLOG
TNBLOG,技术分享。技术交流:群号677373950
ICP备案 :渝ICP备18016597号-1
App store Android
精彩评论
{{item.replyName}}
{{item.content}}
{{item.time}}
{{subpj.replyName}}
@{{subpj.beReplyName}}{{subpj.content}}
{{subpj.time}}
猜你喜欢