Explorar o código

修复缓存日志类型转换类型转换的bug

suntg %!s(int64=8) %!d(string=hai) anos
pai
achega
4f3380b6a6

+ 3 - 2
src/main/java/com/uas/platform/b2c/common/account/model/UsageLog.java

@@ -268,9 +268,10 @@ public class UsageLog extends BufferedLogable implements Serializable {
 		if (strArray.length == 9) {
 			this.time = Long.parseLong(strArray[0]);
 			this.ip = strArray[1];
-			if (!strArray[2].equals("null"))
+			if (!"null".equals(strArray[2]))
 				this.enUU = Long.parseLong(strArray[2]);
-			this.userUU = Long.parseLong(strArray[3]);
+			if (!"null".equals(strArray[3]))
+				this.userUU = Long.parseLong(strArray[3]);
 			this.title = strArray[4];
 			this.message = strArray[5];
 			this.detail = StringUtils.hasText(strArray[6]) ? strArray[6] : null;