档案入口带 return_url(成长档案会话要求)(v26100458)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
/* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */
|
||||
var VER = '26100457';
|
||||
var VER = '26100458';
|
||||
const $ = (s, c) => (c || document).querySelector(s);
|
||||
const $$ = (s, c) => Array.from((c || document).querySelectorAll(s));
|
||||
|
||||
@@ -287,7 +287,10 @@
|
||||
const q = [];
|
||||
if (oid) q.push('openid=' + encodeURIComponent(oid));
|
||||
if (uid) q.push('unionid=' + encodeURIComponent(uid));
|
||||
if (DEMO) q.push('demo=1'); // 示例模式:成长档案也出它自己的示例(含 40 周旅程图)
|
||||
/* 2026-10-05 成长档案会话(19875b1b)要求带 return_url:档案页左上角返回键回到这里(它只收 https:// 或 / 开头,要编码)。 */
|
||||
q.push('return_url=' + encodeURIComponent(location.href));
|
||||
/* demo=1 只在本页「示例模式」(预览路径 + 显式 demo=1)才带;正常入口绝不带 —— 档案页带了会忽略用户自己的数据(对方明确要求)。 */
|
||||
if (DEMO) q.push('demo=1');
|
||||
if (q.length) u += '?' + q.join('&');
|
||||
reportLastApp(ARCHIVE_H5, 'chengzhangdangan');
|
||||
reportHostLocation(u);
|
||||
|
||||
Reference in New Issue
Block a user