😏JSOperateWxData

小程序的一些魔法

小程序的各种魔法 获取小程序的PassTticket

http://127.0.0.1:8898/v1/LuaApiCaller?funcname=JSOperateWxData&timeout=10&wxid=wxid_xxxxx

POST JSON

{"AppId":"wxe79e01ea988f83bc","Scene":1074,"WxData":"{\"api_name\":\"getGetPasskey\",\"data\":{},\"plugin_appid\":\"wx2b03c6e691cd7370\",\"operate_directly\":true}"}

WxData 参数多变 具体小程序具体分析 不同参数需要通过协议分析获得

返回数据

{ "ErrMsg": "", "OperateWxdata": "{\"data\":\"{\\"passkey\\":\\"0d11d04a26ae999d3d446941156a5269a96c42a57f2899ce96b28669dfafdfa30117988d2f4e80e9ae63b0deab108b962a2f3f4a86e3cf989fc9ed6d31546a604dc35d37467baa4899181dbffdfcfbbfaf1ab3542ca41ab252793608a7d361791e227e454236400f9f4fbaaa4eb7132ea27a8e4c69a3bb5e66befb55ee6e3579\\",\\"uin\\":\\"MTEyNDgyPDAxNw==\\",\\"pass_ticket\\":\\"zAfYGYyif/UGkT8g8Ly3dKGO7BBB4tn8wnwu0UiPnWBqY3vPTA2Z+mzEhrtE0eANJO6P2/LJBYH0PXOUepDssg==\\"}\"}", "Ret": 0 }

弹窗模式授权 需要手动确认

确认 获取你的昵称、头像、地区及性别

POST

http://127.0.0.1:8898/v1/LuaApiCaller?funcname=JSOperateWxData&timeout=10&wxid=wxid_xxxxx

POST JSON{"AppId":"wx2c7f0f3c30d99440","Scene":1074,"WxData":"{\"with_credentials\":true,\"api_name\":\"webapi_getuserprofile\",\"data\":{\"lang\":\"zh_CN\",\"desc\":\"使用微信信息登录\"},\"show_confirm\":true}","ScopeCmd":"scope.userInfo"}

返回

signature、encryptedData等信息

静默授权模式

POST JSON

{"AppId":"wx2c7f0f3c30d99440","Scene":1007,"WxData":"{\"with_credentials\":true,\"api_name\":\"webapi_getuserinfo\",\"data\":{\"lang\":\"en\",\"version\":\"2.14.1\"},\"show_confirm\":false}"}

Last updated