feat: 完善淘宝小程序拍照、报告与登录流程

接入本地实时识别和自动三连拍,调整报告裁切、商品跳转、分享标题及居中页眉;完善游客会话、后台渠道隔离、部署脚本与回归测试。
This commit is contained in:
xsl
2026-11-04 15:07:51 +08:00
parent 381da60ae4
commit 774376fa16
147 changed files with 17420 additions and 597 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
'use strict';
const fs = require('node:fs'), path = require('node:path'), crypto = require('node:crypto');
const root = path.resolve(__dirname, '..'), check = process.argv.includes('--check');
const files = ['skin-score.js', 'report-ui.js', 'report-copy.js'];
const files = ['skin-score.js', 'report-ui.js', 'report-copy.js', 'head-pose.js', 'capture-quality.js'];
const manifest = {};
for (const name of files) {
const source = fs.readFileSync(path.join(root, '../h5/js', name));
@@ -15,4 +15,4 @@ for (const name of files) {
const dest = path.join(root, 'vendor/manifest.json'), expected = JSON.stringify(manifest, null, 2) + '\n';
if (check) { if (fs.readFileSync(dest, 'utf8') !== expected) throw Error('Shared manifest drift'); }
else fs.writeFileSync(dest, expected);
console.log(check ? 'PASS: scoring, report UI and copy match H5 byte for byte' : 'Synced shared logic from H5 (source files unchanged)');
console.log(check ? 'PASS: scoring, report UI, copy and capture gates match H5 byte for byte' : 'Synced shared logic from H5 (source files unchanged)');