feat: 完成现有小程序接口的全部迁移至新后端

This commit is contained in:
R524809
2026-10-19 13:17:51 +08:00
parent 8827110f2f
commit d30cf25890
148 changed files with 13287 additions and 34 deletions
+4
View File
@@ -12,6 +12,8 @@ test('日志为单行 JSON,递归脱敏并安全处理循环对象与 bigint',
nested.self = nested;
logger.log('test_event', {
authorization: 'Bearer private-token',
qiniuAk: 'private-ak',
QINIU_SK: 'private-sk',
nested,
body: { code: 'login-secret' },
});
@@ -23,6 +25,8 @@ test('日志为单行 JSON,递归脱敏并安全处理循环对象与 bigint',
assert.equal(log.context.nested.self, '[Circular]');
assert.equal(log.context.nested.amount, '9');
assert.equal(log.context.body, '[REDACTED]');
assert.equal(log.context.qiniuAk, '[REDACTED]');
assert.equal(log.context.QINIU_SK, '[REDACTED]');
assert.ok(!output[0]!.includes('private-'));
assert.ok(!output[0]!.includes('login-secret'));
});