赞
踩
1.后端代码
[HttpPost]
public byte[] getTgyQRCodeAsync2([FromBody] dynamic Json)
{
string token = GetAccessToken2();
var scene = Json.accout.ToString(); var page = "pages/myIndex/clinicSign/clinicSign"; var url = string.Format("https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token={0}", token); var postData = new { scene, page, }.ToJson(); System.Net.HttpWebRequest request; request = (System.Net.HttpWebRequest)WebRequest.Create(url); request.Method = "POST"; request.ContentType = "application/json;charset=UTF-8"; byte[] payload; payload = System.Text.Encoding.UTF8.GetBytes(postData); request.ContentLength = payload.Length; Stream writer = request.GetRequestStream(); writer.Write(payload, 0, payload.Le
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。