QloginPCode
腾讯WEB登陆协议p值算法,node.js编写
更新日志
2020/07/19
1.修复p值失效
2.增加md5加密选项
3.更改返回值为json
使用方法
安装node环境
node service.js
项目即可运行
点击下载
接口文档
以下为部署过的接口,可直接使用
密码为明文时:
https://qlogin.clwl.online/?uin=账号&pwd=密码&vcode=安全码&md5=false密码为md5加密后时:
https://qlogin.clwl.online/?uin=账号&pwd=密码&vcode=安全码
/**
* QQ登陆p值算法
* Author:流逝中沉沦
* @QQ:1178710004
* Blog:https://www.clwl.online
*/
var http = require('http');
var RequestUrl = require('url');
var login = require('./login');
http.createServer(function (request, response) {
var obj = RequestUrl.parse(request.url, true);
var get = obj.query;
response.setHeader("Content-type","text/json;charset=utf8");
response.setHeader("status",200);
if (get.uin == undefined || get.uin == '') {
response.end(JSON.stringify({ code: 0, msg: "QQ不能为空!" }));
}
if (get.pwd == undefined || get.pwd == '') {
response.end(JSON.stringify({ code: 0, msg: "密码不能为空!" }));
}
if (get.vcode == undefined || get.vcode == '') {
response.end(JSON.stringify({ code: 0, msg: "VCODE不能为空!" }));
}
if (get.md5 == undefined || get.md5 == '') {
var ismd5 = false;
}else{
var ismd5 = true;
}
var uin = get.uin;
var pwd = get.pwd;
var vcode = get.vcode;
try {
var p = login.getmd5(uin, pwd, vcode,ismd5);
} catch (error) {
var p = error;
}
response.end(JSON.stringify({ code: 1, msg: "获取成功",data:p }));
}).listen(1234);//端口号
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Your article helped me a lot, is there any more related content? Thanks!
Your article helped me a lot, is there any more related content? Thanks! https://www.binance.com/si-LK/register?ref=V2H9AFPY
Your article helped me a lot, is there any more related content? Thanks!
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Brass Pipes : Corrosion-resistant, brass pipes are used for plumbing and heating systems. ElitePipe Factory in Iraq ensures top-quality brass pipe offerings.
PEX-AL-PEX Pipes : Multi-layered, these pipes offer flexibility and durability, ideal for heating systems. ElitePipe Factory in Iraq manufactures high-quality PEX-AL-PEX pipes.