mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🐞 fix: 修复游客无法解析netease问题
This commit is contained in:
parent
b240fc013e
commit
74486e51e3
@ -155,7 +155,8 @@ export class neteasepro extends plugin {
|
||||
musicUrlReg.exec(message)[2] ||
|
||||
/id=(\d+)/.exec(message)[1];
|
||||
const isMessageJson = await this.isJSON(message);
|
||||
if (isMessageJson) {
|
||||
// 如果是小程序 & 是游客
|
||||
if (isMessageJson && !(await redis.get(await this.getRedisKey(e.user_id)))) {
|
||||
const musicJson = JSON.parse(message);
|
||||
const { preview, title, desc } = musicJson.meta.music || musicJson.meta.news;
|
||||
// console.log(musicUrl, preview, title, desc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user