星空页悄悄话:原样用系统默认话术发的免审(后端判),提示文案区分(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

@@ -3,7 +3,7 @@
(function () {
'use strict';
/* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */
var VER = '26110653';
var VER = '26110801';
const $ = (s, c) => (c || document).querySelector(s);
const $$ = (s, c) => Array.from((c || document).querySelectorAll(s));
@@ -5063,7 +5063,7 @@
/* 11-07 悄悄话第 2 步(用户定):星空页「说一句」并入留言区 —— 发成置顶笔记下的留言(先审后发),赞够门槛自动挂星 */
if (window.MBWhCm) {
MBWhCm.post(t, data.week)
.then(m => { if (m) { toast(m); return; } closeModal(); toast('已发出,审核通过后大家就能看到'); })
.then(m => { if (m) { toast(m); return; } closeModal(); toast(MBWhCm.lastStatus && MBWhCm.lastStatus() === 'approved' ? '已发出,大家都能看到啦' : '已发出,审核通过后大家就能看到'); })
.then(() => { busy = false; btn.disabled = false; btn.textContent = '悄悄发出'; });
return;
}

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; });
},

View File

@@ -1,7 +1,8 @@
/* 孕妈悄悄话 · 每周话题表(2026-11-07 从 app.js 抽出来,首页和孕妈广场共用)。
一条 = 从 from(北京时间那周的周一)起生效,直到下一条的 from;取「from ≤ 今天」的最后一条,没配新话题时沿用上一周的。
换话题 = 往表尾追加一条。后端将来若在 /whisper 返回 theme(同结构),以后端为准。
presets 只是「不知道说什么?点一句」的示范句,发出去照常走微信内容安全审核。 */
presets =「不知道说什么?点一句」的示范句。11-08 用户定:原样发出的免审直接通过(自己打字/改过的照常先审),
判断在后端 box_app services/mama_box_plaza_comment_serv.py WH_THEME_PRESETS —— 改话术 / 换话题要同步改那里。 */
window.MB_WH_THEMES = [
/* 2026-10-02 用户:本周话题由「对宝宝说的话」改成「对老公说的话」;2026-11-01 用户:改成「对未来宝宝说的话」 */
{ from: '2026-09-28', name: '对未来宝宝说的话', lines: ['对未来宝宝', '说的话'], /* lines:广场置顶笔记封面大字的分行 */