支付宝扫码登录
1. WebBrowser请求网址 https://auth.alipay.com/login/index.htm
2. 获取二维码;
3. 获取提交所需参数,如下:
CtrlVersion | 1,1,0,1 |
J_aliedit_key_hidn | password |
J_aliedit_net_info | {"pcGateWayMac":"14-75-90-A2-99-58","pcWGateWayMac":"","pcWGateWayNearbyInfo":[],"pcWGateWaySignal":0 ,"pcWGateWayWifiName":""} |
J_aliedit_prod_type | |
J_aliedit_uid_hidn | alieditUid |
J_aliedit_using | true |
REMOTE_PCID_NAME | _seaside_gogo_pcid |
_seaside_gogo_ | |
_seaside_gogo_p | |
_seaside_gogo_pcid | |
alieditUid | 839821b38e05b6206a811e72d62e3ba8 |
checkCode | |
errorGoto | |
errorVM | |
goto | |
idPrefix | |
json_tk | |
loginScene | index |
logonId | |
method | qrCodeLogin |
needTransfer | |
noActiveX | false |
password | |
passwordSecurityId | web|authcenter_querypwd_login|edcab6c5-7935-48a4-b778-ab001831c9edRZ13 |
password_input | |
password_rsainput | |
personalLoginError | |
qrCodeSecurityId | web|authcenter_qrcode_login|bae56ba2-2153-47cd-bb20-86eefe3fdd06RZ13 |
rds_form_token | 2MUOSVSlrtXm8X7t1EIpWJo8VDxRj47O |
redirectType | |
security_activeX_enabled | false |
site | |
sso_hid | |
superSwitch | true |
support | 000001 |
ua |
|
4. 检查扫码,请求网址类似:
https://securitycore.alipay.com/barcode/barcodeProcessStatus.json?securityId=web%7Cauthcenter_qrcode_login%7Cbae56ba2-2153-47cd-bb20-86eefe3fdd06RZ13&_callback=light.request._callbacks.callback13
如果响应值如下表示扫码成功:
light.request._callbacks.callback20({"barcodeStatus":"confirmed","stat":"ok"})
5. 扫码成功,提交登录请求, 网址来自loginForm的action,如 https://authsu18.alipay.com/login/index.htm
6. 检查是否成功;
7. 成功抓取数据;