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

修改vue为内网环境

parent 00478066
...@@ -81,17 +81,16 @@ public class AccessMessageConsumerListener { ...@@ -81,17 +81,16 @@ public class AccessMessageConsumerListener {
entity.setCreateUserId(1L); entity.setCreateUserId(1L);
entity.setCreateTime(new Date()); entity.setCreateTime(new Date());
//判断 超过一定时间的请求 才记录 //判断 超过一定时间的请求 才记录
/* if (!ObjectUtils.isEmpty(entity.getDuration()) && entity.getDuration() < Constant.ACCESS_EXPIRE_TIME) { if (!ObjectUtils.isEmpty(entity.getDuration()) && entity.getDuration() < Constant.ACCESS_EXPIRE_TIME) {
// log.info("Duration:{}",entity.getDuration()); log.info("Duration:{}",entity.getDuration());
return null; return null;
} }
Thread.sleep(10);*/ Thread.sleep(10);
return entity; return entity;
} catch (Exception e) { } catch (Exception e) {
log.info("反序列化异常", e); log.info("反序列化异常", e);
return null; return null;
} }
}).filter(f -> f != null).collect(Collectors.toList()); }).filter(f -> f != null).collect(Collectors.toList());
log.info("[Access onMessage][消息数量:{}]", collect.size()); log.info("[Access onMessage][消息数量:{}]", collect.size());
accessLogService.save(collect); accessLogService.save(collect);
......
...@@ -72,15 +72,6 @@ public class AccessLogController extends BaseCRUDJsonBodyMappingController<Acces ...@@ -72,15 +72,6 @@ public class AccessLogController extends BaseCRUDJsonBodyMappingController<Acces
@Override @Override
@UnAuth @UnAuth
public String save(@RequestBody AccessLogEntity entity) { 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); return super.save(entity);
} }
......
...@@ -81,7 +81,6 @@ public class BizLogController extends BaseCRUDJsonBodyMappingController<BizLogSe ...@@ -81,7 +81,6 @@ public class BizLogController extends BaseCRUDJsonBodyMappingController<BizLogSe
JSONObject ret = new JSONObject(); JSONObject ret = new JSONObject();
ret.put("code", VALUE_RESULT_SUCCESS); ret.put("code", VALUE_RESULT_SUCCESS);
return ret.toJSONString();*/ return ret.toJSONString();*/
return super.save(entity); 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