Downline Banners (Marty 2026-11-13: keep the name): renamed everywhere members see it, new stacked-banner logo + favicon; network sign-in (arrive signed in from InstantAdPay/LinkSpin as your wallet); share links, sponsor and directs use network usernames (?ref=username resolves through InstantAdPay)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-13 07:35:22 -06:00
parent 63199e767a
commit 0507c1a815
15 changed files with 302 additions and 55 deletions
+5 -2
View File
@@ -47,7 +47,10 @@ function get() {
keeperStallHours: Number(e.KEEPER_STALL_HOURS || 4),
keeperMaxPerDay: Number(e.KEEPER_MAX_PER_DAY || 12),
keeperEveryMs: Number(e.KEEPER_EVERY_MIN || 15) * 60000,
iapResolveUrl: (e.IAP_RESOLVE_URL || '').trim() // optional: https://instantadpay.com/api/... returning {address} for ?ref=<username>
iapBase: String(e.IAP_URL || 'https://instantadpay.com').replace(/\/+$/, ''),
lsBase: String(e.LS_URL || 'https://linkspin.app').replace(/\/+$/, ''),
// network usernames: ?u=<username> -> {address, username}, ?a=<wallet> -> the same (InstantAdPay today, the network hub later)
networkLookupUrl: (e.NETWORK_LOOKUP_URL || String(e.IAP_URL || 'https://instantadpay.com').replace(/\/+$/, '') + '/api/network/member').trim()
};
return cfg;
}
@@ -58,7 +61,7 @@ const HOUSE_DEFAULT = [
{ key: 'iap', title: 'InstantAdPay', img: '/art/house-iap.svg', link: 'https://instantadpay.com/', note: 'Ad credits buy advertising, not income.' },
{ key: 'linkspin', title: 'LinkSpin', img: '/art/house-linkspin.svg', link: 'https://linkspin.app/' },
{ key: 'games', title: 'Network games', img: '/art/house-games.svg', link: 'https://enjoybestgames.com/' },
{ key: 'self', title: 'Banner Line', img: '/art/house-line.svg', link: '/join' }
{ key: 'self', title: 'Downline Banners', img: '/art/house-line.svg', link: '/join' }
];
function house() {
try { const h = JSON.parse(fs.readFileSync(path.join(get().dataDir, 'house.json'), 'utf8')); if (Array.isArray(h) && h.length) return h; } catch (e) {}