收藏
回答

小程序跳到公众号报redirect_url参数错误?

小程序跳到公众号报redirect_url参数错误,目前只发现在IOS中有这个问题,安卓中打开同样的链接正常授权,另外非小程序环境中没有出现问题。

aphid: 使用xxxxxx代替

完整的授权URL:https://open.weixin.qq.com/connect/oauth2/authorize?appid=XXXXXXX&redirect_uri=https%3A%2F%2Fwenjuan.meituan.com%2Fcallback-wx%3Fwj_url%3D%252Fm%252Fsurvey%252F4902080%253FsourceApp%253Dwxapp%2526stockPois%253D76%2526poi%253D76%2526openId%253DoV_5G43nZFlXZD8cZwRjfnLpJAUg%2526uuid%253D17cf8a6cd95c8-1481760ffef678-0-4a640-17cf8a6cd95c8%2526xuuid%253D17cf8a6cd95c8-1481760ffef678-0-4a640-17cf8a6cd95c8%2526utm_medium%253D%2526brand%253Dxiaoxiangmaicai%2526tenantId%253D1%2526bizId%253D2%2526app_tag%253Dunion%2526utm_term%253D5.28.0%2526utm_source%253D1011%2526ci%253D2%2526cityId%253D2%2526lng%253D116.466415%2526lat%253D40.00227%2526openIdCipher%253DAwQAAABJAgAAAAEAAADgAAAAPEfMgq1ULu%252F2wCcb13SUxGzb43cksv0%252BJuhhlTHHsYguGg%252BdwRTK2dx0cbsMh6x1x8G5lu%252BTD5NmIUr62wAAADg6g9v6AzsV%252BYm68HqllO7t2peK4CE4occYf1m%252F7BfT2lP2wYTrWyd9UgygCtq8xnkn9n0ubc336Q%253D%253D%2526__lxsdk_params%253DbHhjdWlkOjE3Y2Y5MzQwNGRjYzgtMjAyMzc0YzQ2MzZmZjQtMC0wLTE3Y2Y5MzQwNGRjYzg7YXBwbm06eGlhb3hpYW5nbWFpY2FpX3d4YXBwO21zaWQ6MTdkOTlkMDMxNmUtNDZjNS0xMGVlLTcwN2Q7d3hpZDpvVl81RzQzblpGbFhaRDhjWndSamZuTHBKQVVnO3NjZW5lOjEwMTE7dXRtX2NvbnRlbnQ6MTAxMTt3eHVuaW9uaWQ6MTdjZjhhNmNkOTVjOC0xNDgxNzYwZmZlZjY3OC0wLTRhNjQwLTE3Y2Y4YTZjZDk1Yzg7c2RrX2VudjpvbmxpbmU%253D%2526_lx_ver%253D2.9.0%2526location%253D116.45793077256944%252C39.99671034071181%2526deliveryAddrLocation%253D%252C%2526traceids%253D98de3b05%25235ad9e13f%2526uci%253D2%2526token%253DkrncMbwyoaD6pqSR4SfEwK8USf0AAAAAKncEAPqz3RjuQekt7SuAnj8dMilq1PJdq5WoKN65PPA-c5ArpCe9RAg-jLvpPoVdH08MsA%2526userId%253D29057426%2526userid%253D29057426%2526debug%253Dtrue&response_type=code&scope=snsapi_userinfo&state=wenjuan&md=true&uin=MTQ2MDM0MjU0MA%3D%3D&key=0b42efff9d7104668c3cf9a8297100bbc6b207c659ae3127d69bb382087c0a3fe0206dd58458c189fbfe14b1aca8f2fcf8293564f9f72201fcaeab407e5e883b36616bb1210e9fe120e1e8c815c3f95cb3daf8a3dde9ed864bd25d02552d1224c87f2e7aef592df2d7b5eca7b9109fff9a2eadaeaf3877674462de8da58a20b6&version=18001034&pass_ticket=uqpUAdEmqV%2FYm3khkTl7Qu8%2B%2F0121K23L8lbIDRPDbtxsGljt%2BF3Wly1BxWpa%2BK0

报错如下


抓包截图如下:



确认 scope 和 appid 是正常的,网页授权域名也配置过了。

最后一次编辑于  2022-02-11
回答关注问题邀请回答
收藏

1 个回答

  • 社区技术运营专员--阳光
    社区技术运营专员--阳光
    2022-02-11

    redirectUrl超出长度限制了吧

    2022-02-11
    有用
    回复 7
    • 吴洪杰
      吴洪杰
      2022-02-14
      为什么有些手机可以,有些不行?这个解释不了吧
      2022-02-14
      回复
    • 吴洪杰
      吴洪杰
      2022-02-14
      另外redirectUrl 的长度是多少,微信有限制么?
      2022-02-14
      回复
    • 社区技术运营专员--阳光
      社区技术运营专员--阳光
      2022-02-14回复吴洪杰
      一般是1024长度
      2022-02-14
      回复
    • 吴洪杰
      吴洪杰
      2022-02-14回复社区技术运营专员--阳光
      可以查询下相关日志 可以核实下是否是redirectUrl超出长度限制了么?
      2022-02-14
      回复
    • 高永鹏
      高永鹏
      2022-06-17
      授权链接长度很短,也会再苹果手机有这种错误
      2022-06-17
      回复
    查看更多(2)
登录 后发表内容