🐞 fix:修复在新版API中CK参数错误导致无法获取最高音质

This commit is contained in:
秋刀鱼 2024-10-16 08:59:27 +08:00
parent e0d56b3986
commit 618a1e1006

View File

@ -1508,9 +1508,10 @@ async neteaseStatus(e, reck) {
const match = res.data.cookie.match(regex); const match = res.data.cookie.match(regex);
if (match) { if (match) {
try { try {
await config.updateField("tools", "neteaseCookie", match[0]); let ck = match[0] + '; os=pc'
await config.updateField("tools", "neteaseCookie", ck);
// logger.info('ck------', match[0]); // logger.info('ck------', match[0]);
this.neteaseStatus(e, match[0]) this.neteaseStatus(e, ck)
} catch (error) { } catch (error) {
logger.error('更新ck时出错:', error); logger.error('更新ck时出错:', error);
e.reply('更新ck时出错请稍后重试'); e.reply('更新ck时出错请稍后重试');