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
+6
View File
@@ -57,6 +57,12 @@ function authorizeOnce(scopes) {
});
}
function ensure(scope) {
// This app only captures still photos and selects existing images. Region
// selection is manual and spoken guidance is playback, never recording.
// Reject unrelated scopes before even querying platform authorization state.
if (scope !== 'scope.camera' && scope !== 'scope.album') {
return Promise.reject(new Error('当前功能不需要此项授权'));
}
return settings().then(function (current) {
if (state(current, scope) === true) { delete denied[scope]; return; }
if (state(current, scope) === false || denied[scope]) throw rejected(scope);