Skip to content

Commit

Permalink
修复wy歌单分类切换无效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed May 1, 2023
1 parent 36b9322 commit ada01b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 22 deletions.
21 changes: 1 addition & 20 deletions publish/changeLog.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
### 优化

- 增加kg歌单歌曲flac24bit显示(@helloplhm-qwq
- 增加tx源热门评论图片显示(@Folltoshe
- 支持wy热门评论翻页
- 微调排行榜列表宽度及字体大小

### 修复

- 修复wy我喜欢列表使用token的方式导入,现在移动端可以使用token的方式导入我喜欢列表的音乐了,这意味着从PC端同步过来的歌单也可以在移动端上更新
- 修复在线列表的多选问题
- 修复mg搜索不显示时长的问题(@Folltoshe
- 修复mg评论加载失败的问题(@Folltoshe
- 修复在Android 5.1下报错的问题
- 修复对存在错误时间标签的歌词的解析
- 修复聚合搜索时未显示源名称的问题
- 修复更改音源的列表歌曲颜色的实时更新问题

### 其他

- 更新kg、tx、wy等平台排行榜列表
- 更新react native到v0.71.7
- 修复wy歌单分类切换无效的问题
4 changes: 2 additions & 2 deletions src/utils/musicSdk/wy/utils/crypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ export const weapi = object => {
const text = JSON.stringify(object)
const secretKey = String(Math.random()).substring(2, 18)
return {
params: aesEncrypt(btoa(aesEncrypt(btoa(text), AES_MODE.CBC_128_PKCS7Padding, presetKey, iv)), AES_MODE.CBC_128_PKCS7Padding, btoa(secretKey), iv),
params: aesEncrypt(btoa(aesEncrypt(Buffer.from(text).toString('base64'), AES_MODE.CBC_128_PKCS7Padding, presetKey, iv)), AES_MODE.CBC_128_PKCS7Padding, btoa(secretKey), iv),
encSecKey: rsaEncrypt(Buffer.from(secretKey).reverse(), publicKey).toString('hex'),
}
}

export const linuxapi = object => {
const text = JSON.stringify(object)
return {
eparams: Buffer.from(aesEncrypt(btoa(text), AES_MODE.ECB_128_NoPadding, linuxapiKey, ''), 'base64').toString('hex').toUpperCase(),
eparams: Buffer.from(aesEncrypt(Buffer.from(text).toString('base64'), AES_MODE.ECB_128_NoPadding, linuxapiKey, ''), 'base64').toString('hex').toUpperCase(),
}
}

Expand Down

0 comments on commit ada01b6

Please sign in to comment.