一、微信公众号配置“服务器配置”
https://blog.csdn.net/qq_31267183/article/details/83181157
二、生成带标识符的二维码
1. 生成AccessToken
/// <summary>
/// 获取token
/// </summary>
/// <returns></returns>
public static Response_AccessToken GetToken()
{
var url = "https://api.weixin.qq.com/cgi-bin/token";
Dictionary<string, string> dict = new Dictionary<string, string>();
dict.Add("appid", appId);
dict.Add("secret", secret);
dict.Add("grant_type", "client_credential");
return HttpGet<Response_AccessToken>(dict, url);
}
/// <summary>
/// 获取token参数
/// </summary>
public class Response_AccessToken : Response_Error
{
/// <summary>
/// 网页授权接口调用凭证
/// </summary>
public string access_token { get; set; }
/// <summa