注:以下分析仅供学习交流,禁做其它用途
微信授权需要拿到登录游戏的code,通过以下链接打开扫码页面,使用微信扫码后可获得code:
王者荣耀:https://open.weixin.qq.com/connect/app/qrconnect?appid=wx95a3a4d7c627e07d&bundleid=com.tencent.tmgp.sgame&scope=snsapi_userinfo
和平精英:https://open.weixin.qq.com/connect/app/qrconnect?appid=wxc4c0253df149f02d&bundleid=com.tencent.tmgp.pubgmhd&scope=snsapi_userinfo
ios :在safari打开就可以登录:
王者荣耀:wx95a3a4d7c627e07d://oauth?code=&state=
和平精英:wxc4c0253df149f02d://oauth?code=&state=
android:需要写个apk来实现:
Intent intent = new Intent();
在intent里传入包名、code等参数
startActivity(intent);