Skip to content

Commit

Permalink
Merge pull request #3090 from JaneConan/#3089_fix_WxaAPIs_GetQRCodeAsync
Browse files Browse the repository at this point in the history
#3089 fix wxa ap is get qr code async
  • Loading branch information
JeffreySu authored Nov 2, 2024
2 parents d9d6673 + a18c570 commit faf2856
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,13 @@ public static CodeResultJson Commit(string accessToken, int template_id, string
/// <summary>
/// 获取小程序的体验二维码
/// </summary>
/// <param name="accessToken">从第三方平台获取到的该小程序授权</param>
/// <param name="accessToken">从第三方平台获取到的该小程序授权。第三方平台接口调用凭证authorizer_access_token,该参数为 URL 参数,非 Body 参数。(必填)</param>
/// <param name="path">指定二维码扫码后直接进入指定页面并可同时带上参数。(可选) </param>
/// <param name="timeOut"></param>
[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()
Expand Down

0 comments on commit faf2856

Please sign in to comment.