diff --git a/chain.js b/chain.js index 38e9f39..86faafe 100644 --- a/chain.js +++ b/chain.js @@ -438,6 +438,17 @@ async function memberPublic(id) { out.income = inc.map(p => ({ fromId: p.fromId, pol: p.pol, ts: p.ts, desc: describeIncome(p.fromTier, p.level, p.pol) })).reverse().slice(0, 50); } catch (e) { out.income = []; } out.subtree = getSubtree(id, 99); // full leg — the dashboard drills down client-side + // moving-link automation: the first position below (breadth-first, left→right) + // that still needs directs is where a qualified member's effort goes next + if (out.subtree) { + const q = [out.subtree.left, out.subtree.right].filter(Boolean); + while (q.length) { + const n = q.shift(); + if ((n.directCount || 0) < 2) { out.nextInLine = { id: n.id, directCount: n.directCount || 0, levelName: n.levelName }; break; } + if (n.left) q.push(n.left); + if (n.right) q.push(n.right); + } + } const chain = []; const seen = new Set([id]); let cur = m.uplineId; diff --git a/public/my.js b/public/my.js index 8127bea..e787d03 100644 --- a/public/my.js +++ b/public/my.js @@ -91,7 +91,16 @@ if(!el)return; const dashUrl=`https://rmcircle.saasy.top/my/${d.id}`; if(d.directCount>=2){ - el.innerHTML=`
★ Qualified This position has its 2 directs, so its referral link is retired under the team strategy. Send new members through the team rotation — the current sponsor is always live on the start page.
This QR sends prospects to the team rotation — show it or print it.
★ Qualified Your link is retired — now the effort moves down. Next in line: #${nx.id} (${nx.directCount}/2 directs). Help them get their 2 — share their page or send prospects the join button, which carries #${nx.id} as sponsor.
${esc(nxDash)}
When #${nx.id} reaches 2/2 this rotates to the next position in your leg — the qualification wave keeps moving down. General traffic can still go through the team rotation.
★ Qualified This position has its 2 directs and everyone in your leg is qualified too — outstanding. Send new members through the team rotation — the current sponsor is always live on the start page.
This QR sends prospects to the team rotation — show it or print it.