日志:增加日志详述,方便后台读取

This commit is contained in:
luying
2022-09-16 17:44:54 +08:00
parent e9bd4f51f1
commit 3294f5ada0
7 changed files with 59 additions and 17 deletions

View File

@@ -35,11 +35,11 @@ export async function saveLoginAndOutLog(type: LOG_TYPE, session: any) {
}
}
export async function saveCeChangeLog(role: RoleType, inc: number, count: number, type: number, ids: number[]) {
export async function saveCeChangeLog(role: RoleType, inc: number, count: number, type: number, ids: string[]) {
try {
if(inc != 0) {
let params = getParamByRole(role);
await UserLogModel.createRecord({ type: LOG_TYPE.CE_CHANGE, ...params, inc, count, ceChangeReason: type, ceChangeIds: ids });
await UserLogModel.createRecord({ type: LOG_TYPE.CE_CHANGE, ...params, inc, count, ceChangeReason: type, ceChangeTxt: ids });
}
} catch (e) {
console.error(e);