UnblockNeteaseMusic / UnblockNeteaseMusic/server
作为依赖安装,打包electron后返回为空
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 7.8k
- Forks
- 762
- PR merge metrics
- No merged PRs in 30d
Description
Bug 描述
在electron应用中作为依赖引入,调用match接口,开发环境可以正常使用,但是打包后运行exe返回为空,这是函数(修改了入口函数的入参构造,其余均未做修改)
static async matchMore(_event: any, query: any) {
try {
log.info('match_song_query:', query);
const q = PlayerUtil.hanldeQuery(query)
const { id,data, openFlac = true, musicLevel, followOrder } = q
const res = await match(id, JSON.parse(JSON.stringify(data)), ['pyncmd', 'kuwo', 'qq'], openFlac, musicLevel, followOrder);
log.info('match_res:', res);
return res;
} catch (error) {
console.error(error);
}
}
预期行为
在electron打包后的生产环境正确返回匹配内容
实际行为
生产环境返回空值undefined
复现步骤
No response
启动命令及环境变量
依赖库使用,match()
日志内容
return undefined
网易云音乐歌曲链接
No response
网易云音乐版本号
lastest
操作系统
win11
其他信息
No response
问题排查
- 我确认我使用的核心是由 UnblockNeteaseMusic 项目官方发行,不是其他任何 fork。
- 我确认我已经升级到了最新的核心版本(推荐使用最新构建而不是 release)。
- 我确认我已经启用了 HTTPS 端口。
- 我确认我已经正确设置了 EndPoint。
- 我确认我已经在对应的客户端正确安装了 CA 证书。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the reported matchMore entry point and the match() call, then compare their behavior in development with the packaged Electron application on Windows 11. The issue provides no reproduction steps, named files, or tests; done means identifying why the packaged call returns undefined and confirming that it returns matching content in production.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, javascript
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100