lxw
2023-05-25 f3c27fb78447449a950ba73c5e72ceda64ad8a12
src/main/java/com/whyc/aop/OperationLogAspect.java
@@ -91,13 +91,18 @@
        //获取类型
        String[] fullClassNameSplit = fullClassName.split("\\.");
        String classNameTrue = fullClassNameSplit[fullClassNameSplit.length-1];
        String className = classNameTrue.replace("Controller","模块");
        String module = "模块";
        String app = "-安卓端";
        String moduleEnus = "module";
        String appEnus = "-android";
        String className = classNameTrue.replace("Controller:", module);
        String classNameEnus = classNameTrue.replace("Controller:", moduleEnus);
        //排除语音触发的日志记录
        if(!classNameTrue.equals("VoiceController")) {
            if (fullClassName.contains("app")) {
                className += "-安卓端";
                className += app;
                classNameEnus += appEnus;
            }
            //操作时间
@@ -124,7 +129,7 @@
            }
            String operationMsg = "执行了" + className + "的" + operationTypeName + "操作.";
            String operationDetail = "具体调用方法为:" + methodName + ",具体参数为:" + map.toString();
            String operationMsgEnUs = "executed:" + className + " " + operationTypeNameEn + " operation ";
            String operationMsgEnUs = "executed:" + classNameEnus + " " + operationTypeNameEn + " operation ";
            String operationDetailEnUs = "Specific calling method is " + methodName + ",Specific parameters are " + map.toString();
            service.record(uId, operationType, operationTime, terminalIp, operationMsg, operationDetail, operationMsgEnUs, operationDetailEnUs);