3 Commits

Author SHA1 Message Date
325e46d90c Publish nexusphp v1.0.3 2026-09-20 17:22:33 +00:00
45559f31b8 Publish nexusphp v1.0.3 2026-09-20 17:22:30 +00:00
40c4c700e6 Publish nexusphp v1.0.3 2026-09-20 17:22:28 +00:00
3 changed files with 9 additions and 7 deletions

View File

@@ -423,7 +423,7 @@ function parse(content, url) {
// 签到(signInPath 默认 /attendance.php,可在站点 definition 中覆盖,如 BTSCHOOL: /index.php?action=addbonus)
// 成功时若响应页含 #info_block (含魔力值) 则一并返回 bonus 供服务端更新 Site.Statistics.Bonus;
// 站点页面不含 / 解析不到时缺省不返回该字段, 服务端不处理 (report §四 签到奖励自动更新).
function signIn(input) {
function sign(input) {
var ctx = __asCtx(input);
var signPath = ctx.signInPath || '/attendance.php';
var res = http.post(signPath);
@@ -898,9 +898,11 @@ function rss(ctx) {
var base = String(ctx.baseUrl || '').replace(/\/+$/, '');
var url = ctx.feedUrl ? String(ctx.feedUrl) : '';
if (!url) {
var rssPath = ctx.rssPath || '/torrentrss.php';
// NexusPHP RSS 入口有两种命名: getrss.php (新) 和 torrentrss.php (旧).
// 用户没手动填 feedUrl 时, 先试 getrss.php, 失败再回退 torrentrss.php.
var paths = ctx.rssPaths || ['/getrss.php', '/torrentrss.php'];
if (!base) return { error: 'no_feed_url' };
url = base + rssPath;
url = base + paths[0];
}
var xml;
try {

View File

@@ -1,7 +1,7 @@
{
"AdapterCode": "nexusphp",
"DisplayName": "nexusphp",
"Version": "1.0.2",
"Version": "1.0.3",
"Status": "published",
"Runtime": "javascript",
"Description": "",

View File

@@ -1,13 +1,13 @@
{
"version": "1.0",
"minClientVersion": "0.1.0",
"generatedAt": "2026-09-20T17:20:46.287Z",
"generatedAt": "2026-09-20T17:22:28.367Z",
"adapters": {
"nexusphp": {
"adapterCode": "nexusphp",
"displayName": "nexusphp",
"version": "1.0.2",
"checksum": "sha256:8e64b4650695b75f79784f0251b66bc249fb23a1bd1fb337f4a7e3e972b8b0f0",
"checksum": "sha256:4cf2e84cf006259179499705f991fe68da9899ae115e847b5cb945881aa5695e",
"scriptPath": "adapters/nexusphp/adapter.js",
"manifestPath": "adapters/nexusphp/manifest.json",
"capabilities": [
@@ -25,7 +25,7 @@
"mteam": {
"adapterCode": "mteam",
"displayName": "mteam",
"version": "1.0.3",
"version": "1.0.4",
"checksum": "sha256:c679c547b2af424c8cb4809133edb1f1cdde97d37d83390bcb277a76cdeed0ab",
"scriptPath": "adapters/mteam/adapter.js",
"manifestPath": "adapters/mteam/manifest.json",