合入主线登录和营业时段策略,对齐旧界面与 React 访问流程
This commit is contained in:
commit
42395de23a
113 files changed
+1915
-558
No files matched your search
@@ -4,7 +4,6 @@ const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
const { fail } = require('../../core/ledger');
|
||||
const { send } = require('../http');
|
||||
const { readBody } = require('../middleware/body');
|
||||
const { securityAudit } = require('../security-audit');
|
||||
|
||||
function csvText(value) {
|
||||
@@ -60,8 +59,8 @@ module.exports = [
|
||||
path: '/api/backup',
|
||||
role: 'owner',
|
||||
direct: true,
|
||||
handler: async ({ req, ledger, actor, app }) => {
|
||||
await readBody(req);
|
||||
handler: async ({ ledger, actor, app, readBody }) => {
|
||||
await readBody();
|
||||
const b = await app.doBackup();
|
||||
ledger.audit('system', '完整备份', actor, { name: b.name });
|
||||
return { name: b.name };
|
||||
@@ -87,8 +86,8 @@ module.exports = [
|
||||
path: '/api/sync',
|
||||
role: 'owner',
|
||||
direct: true,
|
||||
handler: async ({ req, app }) => {
|
||||
await readBody(req);
|
||||
handler: async ({ app, readBody }) => {
|
||||
await readBody();
|
||||
await app.sync.tick();
|
||||
return app.sync.status();
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user