wangleineo
V2EX  ›  Android

关于微信分享接口返回 ERR_BAN 的问题

  •  
  •   wangleineo · Dec 24, 2017 · 14847 views
    This topic created in 3086 days ago, the information mentioned may be changed or developed.

    我的 Android 应用 debug 版本微信分享接口已经调试好,在手机上运行也没有问题。但是 Build Release 版本以后,装到手机上发现分享出错,返回错误 err_ban (-6 )。

    用官方提供的工具 GenSignature 生成 Signature 发现 debug 版本和 release 版本生成的 signature 是完全不同的,把开放平台后台更新成 release 版本的 signature。但是 release 版本运行仍然报错,debug 版本反倒没有问题。

    这是什么原因? Signature 更新有延迟?还是我做错了什么?

    3 replies    2017-12-25 20:53:11 +08:00
    axepudding
        1
    axepudding  
       Dec 25, 2017   ❤️ 2
    你可以清除微信缓存或者重新卸载安装微信试试看。可能是因为之前你的签名是 debug 版本的,之后换成 release,但是微信只记住之前的签名导致的。
    yutou527
        2
    yutou527  
       Dec 25, 2017
    Signature 更新几乎没有延迟
    wangleineo
        3
    wangleineo  
    OP
       Dec 25, 2017
    @axepudding 果然,谢谢!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1000 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 23:06 · PVG 07:06 · LAX 16:06 · JFK 19:06
    ♥ Do have faith in what you're doing.