/// <summary>
/// 生成手机端二维码
/// </summary>
/// <param name=“preAuthCode”></param>
/// <param name=“authType”>1公众号、2小程序、3公众号,小程序</param>
/// <returns></returns>
public static string GenerateQrCode(string preAuthCode, int authType = 1)
{
var url = “https://mp.weixin.qq.com/safe/bindcomponent?action=bindcomponent&auth_type=1&no_scan=1&component_appid=” + Config.ServerAppID
+ “&pre_auth_code=” + preAuthCode + “&redirect_uri=https://pinchezhijia.com/WeChatApi/PostAuth_code&auth_type=” + authType + “#wechat_redirect”;
return url;
}