星空页悄悄话:原样用系统默认话术发的免审(后端判),提示文案区分(v26110801)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
deploy
2026-11-08 01:06:06 +00:00
parent 07d81be6c2
commit 7092d3590e
4 changed files with 13 additions and 10 deletions

View File

@@ -322,6 +322,7 @@
method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(body)
}).then(function (r) { return r.json(); }).then(function (j) {
if (!j || j.code !== 200 || !j.result) return (j && j.message) || '没发出去,再试一次';
LAST_ST = j.result.status; /* 11-08 星空页选系统默认话术发的免审,直接 approved(后端判),提示不说「审核」 */
if (j.result.status === 'rejected') return null; /* 审核中的也放进列表(标「审核中」,只有自己看得到) */
if (reply) { RREP.push(repOf(j.result, 1)); rerender(reply); }
else {
@@ -334,7 +335,7 @@
return null;
}).catch(function () { return '网络不太好,再试一次'; });
}
var busy = false;
var busy = false, LAST_ST = '';
function send() {
var t = inp.value.trim();
if (t.length < 2) { toast('多写一两个字吧'); return; }
@@ -344,7 +345,7 @@
busy = false; sendB.disabled = false;
if (msg) { toast(msg); return; }
inp.value = ''; inp.blur(); setReply(null);
toast(REPLY0 ? '回复已发出,审核通过后大家就能看到' : '已发出,审核通过后大家就能看到');
toast(LAST_ST === 'approved' ? '已发出,大家都能看到啦' : REPLY0 ? '回复已发出,审核通过后大家就能看到' : '已发出,审核通过后大家就能看到');
});
}
sendB.addEventListener('click', send);
@@ -438,12 +439,13 @@
/* 11-07 用户:只留「被赞 3 次变成星星」,明显一点 */
ld.innerHTML = '<span class="wms hi"><svg viewBox="0 0 20 20"><path d="M10 .5C10.9 7.4 12.6 9.1 19.5 10 12.6 10.9 10.9 12.6 10 19.5 9.1 12.6 7.4 10.9.5 10 7.4 9.1 9.1 7.4 10 .5Z"/></svg>' +
'<span>被赞 <b>' + STAR_N + '</b> 次,<br>你的话就变成一颗星星</span></span>';
var lf = document.getElementById('whLeft'); if (lf) lf.textContent = '审核通过后,可以转给朋友帮你点赞';
var lf = document.getElementById('whLeft'); if (lf) lf.textContent = '点一句直接发出;自己写的审核通过后公开';
}
if (M && !M.querySelector('.wms-sky')) M.insertAdjacentHTML('afterbegin', '<i class="wms-sky" aria-hidden="true"></i>');
window.MBWhCm = {
fillModal: fillModal,
starLikes: function () { return STAR_N; },
lastStatus: function () { return LAST_ST; },
post: function (text, week) {
return post(text, week, null).then(function (msg) { if (!msg) setTimeout(function () { snap('half'); }, 400); return msg; });
},