Commit eacac40e authored by 赵啸非's avatar 赵啸非

修改vue为内网环境

parent 00478066
......@@ -81,17 +81,16 @@ public class AccessMessageConsumerListener {
entity.setCreateUserId(1L);
entity.setCreateTime(new Date());
//判断 超过一定时间的请求 才记录
/* if (!ObjectUtils.isEmpty(entity.getDuration()) && entity.getDuration() < Constant.ACCESS_EXPIRE_TIME) {
// log.info("Duration:{}",entity.getDuration());
if (!ObjectUtils.isEmpty(entity.getDuration()) && entity.getDuration() < Constant.ACCESS_EXPIRE_TIME) {
log.info("Duration:{}",entity.getDuration());
return null;
}
Thread.sleep(10);*/
Thread.sleep(10);
return entity;
} catch (Exception e) {
log.info("反序列化异常", e);
return null;
}
}).filter(f -> f != null).collect(Collectors.toList());
log.info("[Access onMessage][消息数量:{}]", collect.size());
accessLogService.save(collect);
......
......@@ -72,15 +72,6 @@ public class AccessLogController extends BaseCRUDJsonBodyMappingController<Acces
@Override
@UnAuth
public String save(@RequestBody AccessLogEntity entity) {
/* AccessLogPdu accessLogPdu = new AccessLogPdu();
accessLogPdu.initAttrValue();
BeanUtils.copyProperties(entity, accessLogPdu, BeanUtil.getNullPropertyNames(entity));
messageProducer.syncAccessSend(accessLogPdu);
JSONObject ret = new JSONObject();
ret.put("code", VALUE_RESULT_SUCCESS);
return ret.toJSONString();*/
return super.save(entity);
}
......
......@@ -81,7 +81,6 @@ public class BizLogController extends BaseCRUDJsonBodyMappingController<BizLogSe
JSONObject ret = new JSONObject();
ret.put("code", VALUE_RESULT_SUCCESS);
return ret.toJSONString();*/
return super.save(entity);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment