feat(脏改动归属收尾): 门禁报告去时间戳/pay-order退款空吞补提示/门禁62-0-0

G1: scripts/data-contract-report.js + quality-check.js 删除 Generated 时间戳行
    (时间戳保留在 gitignored 的 *.json generatedAt 备查;reports/*.md
    此后跑门禁不再变脏,归属:门禁产物噪音)
G2: pay-order/list.vue confirmRefund 云端拒绝 errCode 分支 + 校验/网络
    catch 分支均补 toast 用户可见提示(此前静默失败)
门禁: npm test 62 schemas/0 漂移/0 错误全绿;diff --check 按
    core.whitespace=cr-at-eol 通过(仓库既有 CRLF 惯例,autocrlf=false)
This commit is contained in:
12914
2026-09-14 03:24:15 +08:00
parent f47bd75e78
commit 0a7725f6d8
6 changed files with 18 additions and 9 deletions
+1
View File
@@ -1,4 +1,5 @@
## 2.5.1(2026-09-11)
- 脏改动归属收尾(2026-09-14):G1门禁报告去时间戳(data-contract-report.js/quality-check.js删Generated行,时间戳保留在gitignored的json备查;reports/*.md此后跑门禁不再变脏)/G2 pay-order退款空吞补提示(云端拒绝errCode分支+校验/网络catch分支均toast用户可见;此前静默失败)/门禁62/0/0重跑全绿
- B批缝隙收尾(2026-09-13):B3残留13文件catch补齐(主表/图表落errorMessage+清空+loading,主表命名以channel.vue为准;渠道下拉仅清空+console兜底不污染主错误态;user-overview面板无catch不硬造)/B7-1 add页补祖先链成环校验(与edit一致)/B4-5 safety用_create_date+ip+type_、app用_id||appid(comparison图表数组与mapper表头为静态结构保留index)/B5-1核对崩溃30字段与page-rule 4字段全部对齐无改动/B5-2仅补uni-id-scores索引(sign-in按user_id查+create_date倒序取最新;opendb-news-articles/categories、read-news-log、uni-stat-run-errors、opendb-tempdata仓库内无页面查询,凭空造索引违反规格故延后)
- 破坏性 schema 变更(上传前必须人工核对线上数据):opendb-sms-log 的 ccreate_date 已改名 create_date(旧数据改名后不可见,需迁移)、mobile 由 int 改为 string、task_id 外键修正为 opendb-sms-task._id;cms-temp 权限收敛为仅 admin 可写(原悬空的 CREATE/UPDATE/DELETE_CMS_TEMP 权限点已移除)
- 说明:各云函数 package.json 的 version(如 1.0.0)是独立插件版本语义,与 admin 模板 2.5.1 无对应关系,未同步修改
+13 -1
View File
@@ -400,8 +400,20 @@
if (!res.errCode) {
this.refundPopup(false);
this.loadData(false);
} else {
// G2收尾:退款被云端拒绝时此前静默无反馈,补用户可见提示
uni.showToast({
title: (res && (res.errMsg || res.message)) || '退款失败',
icon: 'none'
});
}
}).catch(() => {});
}).catch((err) => {
// G2收尾:表单校验/网络异常此前空吞,补用户可见提示(退款未发起,不触达云端)
uni.showToast({
title: (err && (err.message || err.errMsg)) || '退款失败',
icon: 'none'
});
});
},
sortChange(e, name) {
this.orderByFieldName = name;
-2
View File
@@ -1,7 +1,5 @@
# Data contract report
Generated: 2026-09-12T23:12:01.579Z
- Schemas: 62
- Referenced collections: 27
- Missing schemas: 0
-2
View File
@@ -1,7 +1,5 @@
# Quality report
Generated: 2026-09-12T23:12:01.390Z
- Status: **passed**
- Errors: 0
- Warnings: 0
+2 -2
View File
@@ -232,8 +232,8 @@ function buildReport() {
const lines = [
'# Data contract report',
'',
`Generated: ${report.generatedAt}`,
'',
// G1收尾:去掉 Generated 时间戳行 —— 每次跑门禁必变导致 reports/*.md 常脏;
// 时间戳仍保留在 gitignored 的 data-contract-report.json(generatedAt)中备查
`- Schemas: ${report.summary.schemaCount}`,
`- Referenced collections: ${report.summary.collectionCount}`,
`- Missing schemas: ${report.summary.missingSchemaCount}`,
+2 -2
View File
@@ -196,8 +196,8 @@ function makeReport(findings, warnings, schemas) {
const lines = [
'# Quality report',
'',
`Generated: ${report.generatedAt}`,
'',
// G1收尾:去掉 Generated 时间戳行 —— 每次跑门禁必变导致 reports/*.md 常脏;
// 时间戳仍保留在 gitignored 的 quality-report.json(generatedAt)中备查
`- Status: **${report.summary.status}**`,
`- Errors: ${report.summary.errors}`,
`- Warnings: ${report.summary.warnings}`,