V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
AndroidTraveler
V2EX  ›  Android

微信登录无法调起授权页

  •  
  •   AndroidTraveler · Nov 22, 2018 · 14749 views
    This topic created in 2718 days ago, the information mentioned may be changed or developed.

    各位,有遇到过微信登录无法调起授权页问题吗?
    这边并没有返回错误,只是不需要用户授权直接就可以拿到 code 了。
    而且 scope 不是静默,是 snsapi_userinfo。
    印象中第一次有看得到授权页面,现在看不到了。
    appid 和 keystore 都没有问题。
    不过日志会打印
    E/MtaSDK: [pool-4-thread-1(95124): null:707] - Server response error code:404, error:{"ret":-1, "msg":"invalid appkey"} 大家知道是什么问题吗?

    5 replies    2018-11-26 15:02:52 +08:00
    StevenTong
        1
    StevenTong  
       Nov 22, 2018
    invalid appkey 很明确的错误了
    imnpc
        2
    imnpc  
       Nov 22, 2018
    微信平台有时候有问题 appkey 需要重新生成 1 次新的 就好了
    AndroidTraveler
        3
    AndroidTraveler  
    OP
       Nov 22, 2018
    @imnpc 重新生成一次 appkey ?具体是?更新 keystore ?
    AndroidTraveler
        4
    AndroidTraveler  
    OP
       Nov 22, 2018
    @StevenTong 虽然有 invalid appkey,但是自己可以拿到 code 啊?回调没有错误啊
    xiaohei233
        5
    xiaohei233  
       Nov 26, 2018
    有错误码的话可以查查错误码,另外 app 包签名是会影响的,你要看看是 debug 模式,还是 release 模式,推荐测试的时候用正式的签名。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2336 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 05:18 · PVG 13:18 · LAX 22:18 · JFK 01:18
    ♥ Do have faith in what you're doing.