Skip to content

Cloud370/qqmusic-sign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qqmusic-sign

QQ音乐API sign算法简易封装

安装

npm安装

npm i qqmusic-sign

yarn安装

yarn add qqmusic-sign

使用方法

const getSign = require("qqmusic-sign");

//传入对象
let obj = {
  comm: { ct: 24, cv: 0 },
  friendConcern: {
    module: "Concern.ConcernSystemServer",
    method: "cgi_concern_user_v2",
    param: {
      opertype: 0,
      source: 0,
      userinfo: { usertype: 0, userid: "owCF7w4z7e6s7z**" },
    },
  },
};

let objSign = getSign(obj)

//传入文字
let str = `{"comm":{"ct":24,"cv":0},"friendConcern":{"module":"Concern.ConcernSystemServer","method":"cgi_concern_user_v2","param":{"opertype":0,"source":0,"userinfo":{"usertype":0,"userid":"owCF7w4z7e6s7z**"}}}}`;
let strSign = getSign(str)

About

QQ音乐API sign算法简易封装

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published