日志修改

This commit is contained in:
guoshengxiong 2024-07-19 10:31:31 +08:00
parent 7a69f94343
commit b4d37542fd

View File

@ -134,15 +134,11 @@ public class OperLogAspect {
if ("200".equals(json.getStr("code"))) {
JSONObject jsonObject = json.getJSONObject("result");
String userId = jsonObject.getStr("userId");
if (StringUtils.isNotEmpty(userId)) {
operlog.setOperUserId(userId);
operationLogService.save(operlog);
}
operlog.setOperUserId(userId);
}
}
} else {
operationLogService.save(operlog);
}
operationLogService.save(operlog);
} catch (Exception e) {
log.error("error", e);
}