From 001fed2ffdfcda1c1ecd3190056a42aa1bb24bb3 Mon Sep 17 00:00:00 2001 From: SHL-COOL Date: Sat, 31 Aug 2024 18:47:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=95=B0=E6=8D=AE=E8=8E=B7?= =?UTF-8?q?=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resource/sites/pt.btschool.club/config.json | 13 ------------- src/background/user.ts | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/resource/sites/pt.btschool.club/config.json b/resource/sites/pt.btschool.club/config.json index 23bc3bfc8..71b735cdf 100644 --- a/resource/sites/pt.btschool.club/config.json +++ b/resource/sites/pt.btschool.club/config.json @@ -93,18 +93,5 @@ "filters": [ "query.attr('class')", "query=='progress_seeding'?2:(query=='progress_completed'?255:(query=='progress_no_downloading'?3:1))" ] } } - }, - "selectors": { - "userBaseInfo": { - "page": "/index.php", - "dataType":"html", - "merge": true - }, - "bonusExtendInfo": { - "prerequisites": "!user.bonusPerHour", - "dataType":"html", - "page": "/mybonus.php", - "merge": true - } } } \ No newline at end of file diff --git a/src/background/user.ts b/src/background/user.ts index 9982260c6..10ba65ec4 100644 --- a/src/background/user.ts +++ b/src/background/user.ts @@ -340,7 +340,7 @@ export class User { contentType: rule.requestContentType == "application/json" ? "application/json" : "application/x-www-form-urlencoded", headers: rule.headers, timeout: this.service.options.connectClientTimeout || 30000, - cache: (rule.dataType) && rule.dataType !== ERequestResultType.JSON ? false : true + cache: (rule.dataType) && rule.dataType == ERequestResultType.JSON ? true : false }) .done(result => { this.removeQueue(host, url);