From 53ca9bd30d7faba93c0cb2fd9e1cd3e8d345e321 Mon Sep 17 00:00:00 2001 From: huangxd- <649924757@qq.com> Date: Fri, 30 Jan 2026 22:21:56 +0800 Subject: [PATCH] =?UTF-8?q?renren=E6=BA=90=E5=BD=93=E5=89=8D=E5=85=88?= =?UTF-8?q?=E6=B3=A8=E9=87=8Aapp=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- danmu_api/sources/renren.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/danmu_api/sources/renren.js b/danmu_api/sources/renren.js index c380f63..588411d 100644 --- a/danmu_api/sources/renren.js +++ b/danmu_api/sources/renren.js @@ -327,7 +327,7 @@ export default class RenrenSource extends BaseSource { let allResults = []; // 优先使用 APP 接口搜索 - allResults = await this.searchAppContent(searchTitle); + // allResults = await this.searchAppContent(searchTitle); // APP 接口失败时降级到网页接口 if (allResults.length === 0) { @@ -348,13 +348,13 @@ export default class RenrenSource extends BaseSource { async getDetail(id) { // 优先使用 APP 接口 - const resp = await this.getAppDramaDetail(String(id)); - if (resp) { - return resp.data; - } + // const resp = await this.getAppDramaDetail(String(id)); + // if (resp) { + // return resp.data; + // } - // APP 接口失败时降级到网页接口 - log("info", "[Renren] APP 详情接口失败,降级到网页接口"); + // // APP 接口失败时降级到网页接口 + // log("info", "[Renren] APP 详情接口失败,降级到网页接口"); const url = `https://api.rrmj.plus/m-station/drama/page`; const params = { hsdrOpen: 0, isAgeLimit: 0, dramaId: String(id), hevcOpen: 1 }; const fallbackResp = await this.renrenRequest("GET", url, params); @@ -441,13 +441,13 @@ export default class RenrenSource extends BaseSource { async getEpisodeDanmu(id) { // 优先使用 APP 接口 - const resp = await this.getAppDanmu(id); - if (resp) { - return resp; - } + // const resp = await this.getAppDanmu(id); + // if (resp) { + // return resp; + // } - // APP 接口失败时降级到网页接口 - log("info", "[Renren] APP 弹幕接口失败,降级到网页接口"); + // // APP 接口失败时降级到网页接口 + // log("info", "[Renren] APP 弹幕接口失败,降级到网页接口"); const ClientProfile = { user_agent: "Mozilla/5.0", origin: "https://rrsp.com.cn",