Skip to content

Commit ce738f6

Browse files
committed
revert: change port to workaround 21H2's port
1 parent 2a0af8f commit ce738f6

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.env.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
VUE_APP_NETEASE_API_URL=/api
22
VUE_APP_ELECTRON_API_URL=/api
3-
VUE_APP_ELECTRON_API_URL_DEV=http://127.0.0.1:35216
3+
VUE_APP_ELECTRON_API_URL_DEV=http://127.0.0.1:10754
44
VUE_APP_LASTFM_API_KEY=09c55292403d961aa517ff7f5e8a3d9c
55
VUE_APP_LASTFM_API_SHARED_SECRET=307c9fda32b3904e53654baff215cb67
66
DEV_SERVER_PORT=20201

.github/workflows/build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
uses: samuelmeuli/action-electron-builder@v1.6.0
8383
env:
8484
VUE_APP_ELECTRON_API_URL: /api
85-
VUE_APP_ELECTRON_API_URL_DEV: http://127.0.0.1:35216
85+
VUE_APP_ELECTRON_API_URL_DEV: http://127.0.0.1:10754
8686
VUE_APP_LASTFM_API_KEY: 09c55292403d961aa517ff7f5e8a3d9c
8787
VUE_APP_LASTFM_API_SHARED_SECRET: 307c9fda32b3904e53654baff215cb67
8888
with:

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "yesplaymusic",
3-
"version": "0.4.6",
3+
"version": "0.4.7",
44
"private": true,
55
"description": "A third party music player for Netease Music",
66
"author": "qier222<qier222@outlook.com>",

src/background.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const closeOnLinux = (e, win, store) => {
6666
win.hide(); //调用 最小化实例方法
6767
} else if (result.response === 1) {
6868
win = null;
69-
app.exit(); // exit()直接关闭客户端,不会执行quit();
69+
app.exit(); //exit()直接关闭客户端,不会执行quit();
7070
}
7171
})
7272
.catch(err => {
@@ -153,7 +153,7 @@ class Background {
153153

154154
const expressApp = express();
155155
expressApp.use('/', express.static(__dirname + '/'));
156-
expressApp.use('/api', expressProxy('http://127.0.0.1:35216'));
156+
expressApp.use('/api', expressProxy('http://127.0.0.1:10754'));
157157
expressApp.use('/player', (req, res) => {
158158
this.window.webContents
159159
.executeJavaScript('window.yesplaymusic.player')
@@ -166,7 +166,7 @@ class Background {
166166
});
167167
});
168168
});
169-
this.expressApp = expressApp.listen(41342, '127.0.0.1');
169+
this.expressApp = expressApp.listen(27232, '127.0.0.1');
170170
}
171171

172172
createWindow() {
@@ -257,8 +257,8 @@ class Background {
257257
createProtocol('app');
258258
this.window.loadURL(
259259
showLibraryDefault
260-
? 'http://localhost:41342/#/library'
261-
: 'http://localhost:41342'
260+
? 'http://localhost:27232/#/library'
261+
: 'http://localhost:27232'
262262
);
263263
}
264264
}

src/electron/services.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export async function startNeteaseMusicApi() {
77

88
// Load the NCM API.
99
await server.serveNcmApi({
10-
port: 35216,
10+
port: 10754,
1111
moduleDefs: require('../ncmModDef'),
1212
});
1313
}

0 commit comments

Comments
 (0)