统一平台资源中文展示并修复模拟订单状态

This commit is contained in:
czl231
2026-08-15 22:06:42 +08:00
parent a20e228296
commit a663821853
24 changed files with 1048 additions and 175 deletions

View File

@@ -1,6 +1,6 @@
/**
* 功能:静态检查三套管理后台的账户角色中文展示与无效头像摘要规则。
* 版本v1.0.0
* 版本v1.1.0
*/
import { readFileSync } from 'node:fs';
import { dirname, resolve } from 'node:path';
@@ -27,14 +27,19 @@ const platformSummary = source(
expectIncludes(
platformResources,
"fixedAdminRole('气站管理员')",
"fixedAdminRole('gas_account')",
'平台总后台缺少气站管理员中文映射',
);
expectIncludes(
platformResources,
"fixedAdminRole('配送点管理员')",
"fixedAdminRole('delivery_account')",
'平台总后台缺少配送点管理员中文映射',
);
expectIncludes(
platformResources,
"resourceSearchEnumOptions(resource, 'role_code')",
'平台总后台固定管理员角色未读取后端中文枚举契约',
);
expectIncludes(
platformResources,
"define('delivery_account', '配送点账户'",