悄悄话转发落地:星空页开着时地址带 ?wh=1,求赞带 &wc=;深链不被恢复上次应用跳走 (v26110632)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
deploy
2026-11-07 04:53:18 +00:00
parent 51828a097c
commit 53652c481c
4 changed files with 25 additions and 10 deletions

View File

@@ -61,7 +61,7 @@
function repOf(c, me) { return { p: c.parent, n: me ? '我' : (c.nickname || '孕妈'), me: me, to: c.parentName, t: c.text, ts: c.at, st: me ? c.status : '' }; }
function load() {
if (loading || SIM) return; loading = true;
fetch('guangchang/cm.json?v=26110631').then(function (r) { return r.json(); }).then(function (j) {
fetch('guangchang/cm.json?v=26110632').then(function (r) { return r.json(); }).then(function (j) {
var PP = j.p;
SIM = (j.c[PID] || []).map(function (c, k) {
var p = PP[c[0]];
@@ -124,6 +124,8 @@
var href = location.origin + location.pathname + '?wh=1&wc=' + encodeURIComponent(id);
var title = '帮我点个赞吧!被赞 ' + STAR_N + ' 次,我对宝宝说的话就能变成一颗星星';
var img = new URL('assets/share/g/home.jpg', document.baseURI).href;
/* 宿主转发好友取 web-view 当前真实地址,不看上报的 href —— 地址栏里也要带上这条留言 */
try { var q = new URLSearchParams(location.search); q.set('wh', '1'); q.set('wc', id); history.replaceState(history.state, '', location.pathname + '?' + q + location.hash); } catch (e) {}
if (window.wxAuth && wxAuth.reportLocation) wxAuth.reportLocation({ href: href, title: title, imageUrl: img });
var g = document.createElement('div');
g.className = 'wsh-g';