Sfoglia il codice sorgente

修改判断是否视频打印日志

humuyu 3 anni fa
parent
commit
55e6f2a62f

+ 5 - 5
eladmin-logging/src/main/java/me/zhengjie/aspect/LogRequestParam.java

@@ -80,19 +80,19 @@ public class LogRequestParam {
 					continue;
 				} else if (value instanceof MultipartFile) {
 					MultipartFile part = (MultipartFile) value;
-					value = part.getOriginalFilename();
+					paramJson = part.getOriginalFilename();
 				} else if (value instanceof MultipartFile[]) {
 					MultipartFile[] part = (MultipartFile[]) value;
 					StringBuffer sb = new StringBuffer();
 					for (MultipartFile file : part) {
 						sb.append(file.getOriginalFilename() + ",");
 					}
-					value = sb.toString();
+					paramJson = sb.toString();
 				} else if (value instanceof String) {
-					String str = (String) value;
-					if (str.length() > 1000) {
+					paramJson = (String) value;
+					if (paramJson.length() > 1000) {
 						// 去掉特别长的参数
-						value = str.substring(0, 1000);
+						paramJson = paramJson.substring(0, 1000);
 					}
 				} else {
 					// 处理参数是对象的值,如果出现异常,说明有文件流

+ 1 - 1
eladmin-security/src/main/java/me/zhengjie/security/security/TokenFilter.java

@@ -162,7 +162,7 @@ public class TokenFilter extends GenericFilterBean {
 			}
 		}
 		filterChain.doFilter(servletRequest, servletResponse);
-		MDC.put(TRACE_ID, traceId);
+//		MDC.put(TRACE_ID, traceId);
 	}
 
 	/**

+ 7 - 5
eladmin-system/src/main/java/me/zhengjie/application/bank/service/impl/BankNotarizeServiceImpl.java

@@ -58,7 +58,7 @@ public class BankNotarizeServiceImpl implements BankNotarizeService {
 	 * @return
 	 */
 	public ResponseDTO<?> onlineNotary(String businessNo) {
-		
+
 		//
 		log.info("删除绑定关系业务流水号: " + businessNo);
 		appPcBindSocketIo.delBusinessNo(businessNo);
@@ -81,24 +81,26 @@ public class BankNotarizeServiceImpl implements BankNotarizeService {
 		log.info("查询所有的公证员: " + bankNotary);
 		// 判断当前是否有人在线,如果没有直接失败
 		boolean isOnline = false;
+		StringBuilder sb = new StringBuilder();
 		for (String username : bankNotary) {
 			Map<UUID, SocketIOClient> socketIo = PcSocketClientCache.socketIOClient(username);
-			log.info("查看在线的公证员: " + username+"对应的socketIo:"+socketIo);
+			sb.append("查看在线的公证员: " + username + ",对应的socketIo:" + socketIo);
 			if (MapUtils.isNotEmpty(socketIo)) {
 				isOnline = true;
 			}
 		}
-		if(!isOnline) {
+		log.info(sb.toString());
+		if (!isOnline) {
 			return ResponseDTO.error(ResultCode.NOTARY_OFFLINE);
 		}
 		// 查询绑定的人员,
 		Set<String> relatedNotary = appPcBindSocketIo.getAllBindNotary();
-		log.info("查询绑定的人员,: " +relatedNotary);// 
+		log.info("查询绑定的人员,: " + relatedNotary);//
 		if (CollectionUtils.isEmpty(relatedNotary)) {
 			return ResponseDTO.success();
 		}
 		Collection<String> intersection = CollectionUtils.intersection(bankNotary, relatedNotary);
-		log.info("绑定公证员和在线公证员的差值: " +intersection);// 
+		log.info("绑定公证员和在线公证员的差值: " + intersection);//
 		if (CollectionUtils.isEqualCollection(intersection, loginNotary)) {
 			return ResponseDTO.error(ResultCode.SEAT_BUSY);
 		}