军团活动:修复粮草先行code不传的问题
This commit is contained in:
@@ -26,7 +26,9 @@ function getParamByRole(role: RoleType) {
|
||||
export async function saveLoginAndOutLog(type: LOG_TYPE, session: any) {
|
||||
try {
|
||||
let params = getParamBySession(session);
|
||||
await UserLogModel.createRecord({ type, ...params });
|
||||
if(params.roleId && params.roleName) {
|
||||
await UserLogModel.createRecord({ type, ...params });
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user