日志:增加日志详述,方便后台读取
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user