Let's see what the returned data means. & nbsp; I opened passport. baidu. comv2api? Login problems & nbsp; simulate logon use & nbsp; ask the teacher to translate what the code means & nbsp; the more specific the better ({& nbsp; error_no & nbsp ;: & nbsp; 0, & nbsp; param_in & nbsp;: & nbsp ;{& see what the returned data represents
Hello, Teacher. I opened the https://passport.baidu.com/v2/api? The problem occurs when login is simulated for login.
({Error_no: "0", param_in: {param1_name: "username", param1_value: "", param2_name: "password", param2_value: "", param3_name: "safeflg ", param3_value: "", param4_name: "verifycode", param4_value: "", param5_name: "mem_pass", param5_value: ""}, param_out: {param1_name: "token", param1_contex: "5ac175b37bc38173cc230b2f15528a48", param2_name: "tpl", param2_contex: "", param3_name : "Time", param3_contex: "1399678071", param4_name: "lang", param4_contex: "", param5_name: "city", param5_contex: "", param6_name: "codestring ", param6_contex: "", param7_name: "bdShowVcode", param7_contex: ""}, jslink: 'https: // passport.baidu.com/js/pass_api_login.js? V = 20111116 ', sourceUrl: "", index: '', more_param_in: {param1_name:" u "}, more_ext: {ext1_name:" getpass ", ext1_url:" http://passport.baidu.com /? Getpass_index ", ext2_name:" question ", ext2_url:" http://passport.baidu.com /? Question "}})
------ Solution --------------------
({
Error_no: "0 ",
Param_in :{
Param1_name: "username", // User name
Param1_value :"",
Param2_name: "password", // password
Param2_value :"",
Param3_name: "safeflg", // security status
Param3_value :"",
Param4_name: "verifycode", // verification code
Param4_value :"",
Param5_name: "mem_pass", // Pass
Param5_value :""
},
Param_out :{
Param1_name: "token", // token
Param1_contex: "5ac175b37bc38173cc230b2f15528a48 ",
Param2_name: "tpl", // third-party logistics
Param2_contex :"",
Param3_name: "time ",
Param3_contex: "1399678071 ",
Param4_name: "lang ",
Param4_contex :"",
Param5_name: "city", // city
Param5_contex :"",
Param6_name: "codestring", // code stream
Param6_contex :"",
Param7_name: "bdShowVcode ",
Param7_contex :""
},
Jslink: 'https: // passport.baidu.com/js/pass_api_login.js? V = 20111116 ',
SourceUrl :"",
Index :'',
More_param_in :{
Param1_name: "u"
},
More_ext :{
Ext1_name: "getpass ",
Ext1_url: "http://passport.baidu.com /? Getpass_index ",
Ext2_name: "question ",
Ext2_url: "http://passport.baidu.com /? Question"
}})