From 766558d5228b8079f4c3c59b23902b5d8bba5554 Mon Sep 17 00:00:00 2001 From: deploy Date: Thu, 5 Nov 2026 22:47:18 +0000 Subject: [PATCH] =?UTF-8?q?v26110484=20=E6=B5=8B=E4=B8=80=E6=B5=8B?= =?UTF-8?q?=E3=80=8C=E6=AD=A4=E5=88=BB=20N=20=E4=BA=BA=E6=AD=A3=E5=9C=A8?= =?UTF-8?q?=E6=B5=8B=E3=80=8D=EF=BC=9A=E6=AF=8F=E6=AC=A1=E5=8F=98=206?= =?UTF-8?q?=EF=BD=9E38=EF=BC=8C=E7=9F=AD=E6=97=B6=E9=97=B4=E4=B8=8D?= =?UTF-8?q?=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- guangchang/index.html | 22 +++++++++++++++------- guangchang/mine/index.html | 2 +- index.html | 24 ++++++++++++------------ js/gch/v4.js | 2 +- 4 files changed, 29 insertions(+), 21 deletions(-) diff --git a/guangchang/index.html b/guangchang/index.html index 04d32b6..c66d392 100644 --- a/guangchang/index.html +++ b/guangchang/index.html @@ -923,10 +923,10 @@ html.night .gtg button.on{background:#F2725B;border-color:#F2725B;color:#fff}
- - - - + + + + @@ -997,7 +997,7 @@ html.night .gtg button.on{background:#F2725B;border-color:#F2725B;color:#fff} var CMD = null, CMERR = false; /* 头像编码:数字 = av/NNNN.webp(旧代码头像);'av:c012' = av/c012.webp(卡通/可爱卡通);'/…' = 站内绝对路径(内置头像库 /_bridge/avatars/);其余 = assets/img/mom/xxx.jpg */ var avP = function (a) { return typeof a === 'number' ? 'av/' + ('000' + a).slice(-4) + '.webp' : a.indexOf('av:') === 0 ? 'av/' + a.slice(3) + '.webp' : a.charAt(0) === '/' ? a : '../assets/img/mom/' + a + '.jpg'; }; - fetch('cm.json?v=26110483').then(function (r) { return r.json(); }).then(function (j) { + fetch('cm.json?v=26110484').then(function (r) { return r.json(); }).then(function (j) { CMD = j; if (openId && NBY[openId]) { renderComments(NBY[openId]); syncBar(NBY[openId]); } }).catch(function () { CMERR = true; if (openId && NBY[openId]) renderComments(NBY[openId]); }); function commentsOf(n) { @@ -1484,7 +1484,7 @@ html.night .gtg button.on{background:#F2725B;border-color:#F2725B;color:#fff} clearInterval(csvT); var box = $('#csvR'); if (!box) return; box.innerHTML = csvOne() + csvOne() + csvOne(); csvLay(box); - var base = csNowBase(), n = base, tick = 0; + var base = csNowBase(), n = base, tick = 0, seen = [n], goal = base, lo = Math.round(base * .9), hi = Math.round(base * 1.1); csvT = setInterval(function () { if (document.hidden || !document.getElementById('csvR')) return; tick++; @@ -1498,7 +1498,15 @@ html.night .gtg button.on{background:#F2725B;border-color:#F2725B;color:#fff} if (tick % 3 === 0) { /* 头像堆换一个人 */ var av = document.querySelectorAll('#csvAv img'); if (av.length) { var im = av[Math.floor(Math.random() * av.length)]; im.classList.add('sw'); setTimeout(function () { im.src = csSrc(CS_AVP[csAvK++ % CS_AVP.length]); im.classList.remove('sw'); }, 220); } } - n = Math.max(Math.round(base * .93), Math.min(Math.round(base * 1.07), n + Math.round((Math.random() - .45) * 14))); + /* 11-05 用户:「数字别在短时间里重复,不要 1300、1301、1305 来回跳」→ 每次变 6~38 人,大体朝一个会换的目标值走(有涨有落); + 最近 20 次(约 26 秒)出现过的数,±2 以内都不再出;范围放到基数的 ±10% */ + if (!(tick % 12) || Math.abs(goal - n) < 10) goal = lo + Math.floor(Math.random() * (hi - lo)); + for (var tr = 0, c; tr < 40; tr++) { + var dir = Math.random() < .72 ? (goal >= n ? 1 : -1) : (goal >= n ? -1 : 1), d = 6 + Math.floor(Math.random() * 33); + c = n + dir * d; if (c > hi || c < lo) c = n - dir * d; /* 出界就往回走,不贴着边界(贴边会反复出同一个数) */ + if (!seen.some(function (v) { return Math.abs(v - c) <= 2; })) break; + } + n = c; seen.push(n); if (seen.length > 20) seen.shift(); var e = document.getElementById('csvN'); if (e) { e.textContent = n.toLocaleString(); e.classList.remove('bp'); void e.offsetWidth; e.classList.add('bp'); } }, 1300); } diff --git a/guangchang/mine/index.html b/guangchang/mine/index.html index a3948b6..ba4d953 100644 --- a/guangchang/mine/index.html +++ b/guangchang/mine/index.html @@ -107,7 +107,7 @@ main{padding:6px 16px 0}
- + - + + @@ -2675,13 +2675,13 @@ html.night .rs-pan .rp-card{background:rgba(255,255,255,.06);border-color:rgba(2 - - + + - + - + - + - - - + + +