Skip to content

Commit

Permalink
修复数据获取
Browse files Browse the repository at this point in the history
  • Loading branch information
SHL-COOL authored and fzlins committed Aug 31, 2024
1 parent a605dfd commit 001fed2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions resource/sites/pt.btschool.club/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
2 changes: 1 addition & 1 deletion src/background/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 001fed2

Please sign in to comment.