完成网络音乐、工具页面与安装器体验升级
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
//登出选定设备
|
||||
const { cryptoAesEncrypt, cryptoRSAEncrypt, appid, clientver, srcappid,signParamsKey } = require('../util');
|
||||
module.exports = (params, useAxios) => {
|
||||
const clienttime_ms = parseInt(new Date().getTime());
|
||||
const encrypt = cryptoAesEncrypt({ token: params.token || params.cookie?.token });
|
||||
const mid = calculateMid(params.mid)
|
||||
const dateTime = Date.now();
|
||||
const dataMap = {
|
||||
appid,
|
||||
clientver,
|
||||
clienttime: clienttime_ms,
|
||||
mid: mid,
|
||||
uuid,
|
||||
dfid,
|
||||
plat: 1,
|
||||
userid,
|
||||
token: encrypt,
|
||||
t_mid :guid,
|
||||
t : dateTime,
|
||||
t_appid: 3116,
|
||||
t_clientver: 10597,
|
||||
srcappid,
|
||||
signature: signParamsKey(dateTime),
|
||||
};
|
||||
|
||||
return useAxios({
|
||||
url: '/loginservice/v1/dev_logout',
|
||||
encryptType: 'android',
|
||||
method: 'GET',
|
||||
data: dataMap,
|
||||
cookie: params?.cookie,
|
||||
headers: { 'Host':'gateway.kugou.com'}
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user