Ver Fonte

优化:报文读取。

lym há 3 anos atrás
pai
commit
8ea9908aea

+ 3 - 0
src/main/java/com/hywa/banktest/bankframework/utils/TransUtils.java

@@ -64,6 +64,9 @@ public class TransUtils {
 			for (int i = 1; i < lines.length; i++) {
 				String[] words = lines[i].split("\\|");
 				TransVo transVo1 = new TransVo();
+				if (words == null || words.length < 8){
+					continue;
+				}
 				transVo1.setNum(Integer.valueOf(words[0]));
 				transVo1.setFarmerName(words[1]);
 				transVo1.setFarmerAccount(words[2]);