diff --git a/src/Senparc.Weixin.Open/Senparc.Weixin.Open/WxaAPIs/Code/CodeApi.cs b/src/Senparc.Weixin.Open/Senparc.Weixin.Open/WxaAPIs/Code/CodeApi.cs index 2feb4ccda1..20ad701f55 100644 --- a/src/Senparc.Weixin.Open/Senparc.Weixin.Open/WxaAPIs/Code/CodeApi.cs +++ b/src/Senparc.Weixin.Open/Senparc.Weixin.Open/WxaAPIs/Code/CodeApi.cs @@ -97,12 +97,13 @@ public static CodeResultJson Commit(string accessToken, int template_id, string /// /// 获取小程序的体验二维码 /// - /// 从第三方平台获取到的该小程序授权 + /// 从第三方平台获取到的该小程序授权。第三方平台接口调用凭证authorizer_access_token,该参数为 URL 参数,非 Body 参数。(必填) + /// 指定二维码扫码后直接进入指定页面并可同时带上参数。(可选) /// [NcApiBind(NeuChar.PlatformType.WeChat_OfficialAccount, "CodeApi.GetQRCode", true, ApiRequestMethod = CO2NET.WebApi.ApiRequestMethod.Get)] - public static CodeResultJson GetQRCode(string accessToken, Stream stream, int timeOut = Config.TIME_OUT) + public static CodeResultJson GetQRCode(string accessToken, string path, Stream stream, int timeOut = Config.TIME_OUT) { - var url = string.Format(Config.ApiMpHost + "/wxa/get_qrcode?access_token={0}", accessToken.AsUrlData()); + var url = string.Format(Config.ApiMpHost + "/wxa/get_qrcode?access_token={0}&path={1}", accessToken.AsUrlData(), path.AsUrlData()); Get.Download(CommonDI.CommonSP, url, stream); return new CodeResultJson()