feat(ops): 下单与核销纳入接口访问百分比

总部可按成功百分比拦截现场提货、配送下单,以及扫码、手机号和弱网核销,规则写入 v4 文档。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-26 14:00:55 +08:00
parent 550697c346
commit d306ffaea8
12 changed files with 60 additions and 11 deletions
@@ -102,7 +102,7 @@ export class ApiAccessService implements OnModuleInit {
async updateGlobals(items: ApiAccessGlobalItem[]): Promise<ApiAccessFormResponse> {
await this.adminReady();
if (!Array.isArray(items) || items.length !== API_ACCESS_PERCENT_FEATURES.length) {
throw new BadRequestException('需同时提交五个功能的成功百分比');
throw new BadRequestException('需同时提交全部功能的成功百分比');
}
const seen = new Set<string>();
for (const item of items) {