Skip to content

Commit 51964e5

Browse files
committedJan 30, 2021
Merge branch 'dev'
2 parents bb411a3 + 0c63268 commit 51964e5

File tree

7 files changed

+47
-39
lines changed

7 files changed

+47
-39
lines changed
 

‎CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ Project versioning adheres to [Semantic Versioning](http://semver.org/).
66
Commit convention is based on [Conventional Commits](http://conventionalcommits.org).
77
Change log format is based on [Keep a Changelog](http://keepachangelog.com/).
88

9+
## [1.7.1](https://github.com/lyswhut/lx-music-desktop/compare/v1.7.0...v1.7.1) - 2021-01-30
10+
11+
### 修复
12+
13+
- 修复非透明模式下右侧滚动条无法拖动的问题
14+
- 修复MAC下xm音乐滑块验证问题
15+
916
## [1.7.0](https://github.com/lyswhut/lx-music-desktop/compare/v1.6.1...v1.7.0) - 2021-01-30
1017

1118
### 新增

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lx-music-desktop",
3-
"version": "1.7.0",
3+
"version": "1.7.1",
44
"description": "一个免费的音乐查找助手",
55
"main": "./dist/electron/main.js",
66
"productName": "lx-music-desktop",

‎publish/changeLog.md

+2-18
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,4 @@
1-
### 新增
2-
3-
- 搜索界面新增搜索状态的提示
4-
- 新增“稍后播放”功能,可在歌曲列表右键菜单使用
5-
- 新增“记住播放进度”功能的控制,该功能默认不再开启,可到播放设置-记住播放进度开启
6-
7-
### 优化
8-
9-
- 优化播放歌曲换源匹配
10-
- 优化设置界面设置项的展示
11-
121
### 修复
132

14-
- 修复快速切换歌曲时, 会出现播放的歌曲和界面展示的歌曲不一致的问题
15-
- 修复了一个由版本更新日志显示导致的潜在远程代码执行攻击漏洞,该漏洞影响v1.6.1及之前的所有版本,请务必更新到最新版本
16-
- 修复xm搜索源验证问题
17-
18-
### 其他
19-
20-
- 更新electron到9.4.2
3+
- 修复非透明模式下右侧滚动条无法拖动的问题
4+
- 修复MAC下xm音乐滑块验证问题

‎publish/utils/updateChangeLog.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ module.exports = async newVerNum => {
4444
desc: version.desc,
4545
})
4646
version.version = newVerNum
47-
version.desc = newChangeLog
48-
// version.desc = newMDChangeLog.replace(/(?:^|(\n))#{1,6} (.+)\n/g, '$1$2').trim()
47+
version.desc = newMDChangeLog.replace(/(?:^|(\n))#{1,6} (.+)\n/g, '$1$2').trim()
4948
pkg.version = newVerNum
5049

5150
console.log(chalk.blue('new version: ') + chalk.green(newVerNum))

‎publish/version.json

+1-1
Large diffs are not rendered by default.

‎src/main/rendererEvents/xm_verify/xm_verify_win.js

+31-17
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ mainHandle(ipcMainWindowNames.handle_xm_verify_open, (event, url) => new Promise
2727
const windowSizeInfo = getWindowSizeInfo(global.appSetting)
2828
win = new BrowserWindow({
2929
parent: global.modules.mainWindow,
30-
width: 460,
31-
height: 370,
30+
width: 1000,
31+
height: 800,
3232
resizable: false,
3333
// transparent: true,
34-
x: mainWindowSizeInfo.x + (windowSizeInfo.width - 460) / 2,
35-
y: mainWindowSizeInfo.y + (windowSizeInfo.height - 320 + 52) / 2,
34+
x: mainWindowSizeInfo.x + (windowSizeInfo.width - 1000) / 2,
35+
y: mainWindowSizeInfo.y + (windowSizeInfo.height - 800 + 52) / 2,
3636
minimizable: false,
3737
maximizable: false,
3838
// movable: false,
@@ -43,20 +43,34 @@ mainHandle(ipcMainWindowNames.handle_xm_verify_open, (event, url) => new Promise
4343
disableHtmlFullscreenWindowResize: true,
4444
},
4545
})
46-
win.webContents.on('did-finish-load', () => {
47-
if (/punish\?/.test(win.webContents.getURL())) return
48-
let ses = win.webContents.session
49-
ses.cookies.get({ name: 'x5sec' })
50-
.then(async([x5sec]) => {
51-
isActioned = true
52-
await closeWin()
53-
if (!x5sec) return reject(new Error('get x5sec failed'))
54-
resolve(x5sec.value)
55-
}).catch(async err => {
46+
// win.webContents.on('did-finish-load', () => {
47+
// if (/punish\?/.test(win.webContents.getURL())) return
48+
// let ses = win.webContents.session
49+
// ses.cookies.get({ name: 'x5sec' })
50+
// .then(async([x5sec]) => {
51+
// isActioned = true
52+
// await closeWin()
53+
// if (!x5sec) return reject(new Error('get x5sec failed'))
54+
// resolve(x5sec.value)
55+
// }).catch(async err => {
56+
// isActioned = true
57+
// await closeWin()
58+
// reject(err)
59+
// })
60+
// })
61+
62+
win.webContents.session.webRequest.onCompleted({ urls: ['*://www.xiami.com/*'] }, details => {
63+
if (/\/_____tmd_____\/slide\?/.test(details.url)) {
64+
for (const item of details.responseHeaders['set-cookie']) {
65+
if (!/^x5sec=/.test(item)) continue
66+
const x5sec = /x5sec=(\w+);.+$/.exec(item)
5667
isActioned = true
57-
await closeWin()
58-
reject(err)
59-
})
68+
closeWin().finally(() => {
69+
if (!x5sec) return reject(new Error('get x5sec failed'))
70+
resolve(x5sec[1])
71+
})
72+
}
73+
}
6074
})
6175

6276
win.webContents.loadURL(url, {

‎src/renderer/App.vue

+4
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,10 @@ body {
462462
border-top-left-radius: 0;
463463
border-bottom-left-radius: 0;
464464
}
465+
466+
#view { // 偏移5px距离解决非透明模式下右侧滚动条无法拖动的问题
467+
margin-right: 5Px;
468+
}
465469
}
466470
467471
#container {

0 commit comments

Comments
 (0)
Please sign in to comment.