29 lines
1.1 KiB
JavaScript
29 lines
1.1 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.BackendRuntimeContext = void 0;
|
|
const BackendRuntimeContext_1 = require("oak-general-business/lib/context/BackendRuntimeContext");
|
|
const application_1 = require("../utils/application");
|
|
class BackendRuntimeContext extends BackendRuntimeContext_1.BackendRuntimeContext {
|
|
applicationProjection = application_1.mergedProjection;
|
|
async toString() {
|
|
const data = await this.getSerializedData();
|
|
return JSON.stringify(data);
|
|
}
|
|
async refineOpRecords() {
|
|
await super.refineOpRecords();
|
|
for (const opRecord of this.opRecords) {
|
|
if (opRecord.a === 's') {
|
|
const { d } = opRecord;
|
|
for (const entity in d) {
|
|
if (['application', 'system'].includes(entity)) {
|
|
// todo 删除掉config中的敏感返回信息
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
exports.BackendRuntimeContext = BackendRuntimeContext;
|
|
;
|
|
exports.default = BackendRuntimeContext;
|