记得上下班打卡 | git大法好,push需谨慎

Commit 81f1886f authored by 胡佳晨's avatar 胡佳晨

批量空投暂时数量不能大于100

parent 49968799
...@@ -401,7 +401,9 @@ public class GoblinNftExCodeServiceImpl implements IGoblinNftExCodeService { ...@@ -401,7 +401,9 @@ public class GoblinNftExCodeServiceImpl implements IGoblinNftExCodeService {
} }
phonestr.append(data.getPhone()).append(","); phonestr.append(data.getPhone()).append(",");
phoneList.add(data.getPhone()); phoneList.add(data.getPhone());
if(phoneList.size()>100){
break;
}
} }
})).sheet().doRead(); })).sheet().doRead();
...@@ -410,6 +412,10 @@ public class GoblinNftExCodeServiceImpl implements IGoblinNftExCodeService { ...@@ -410,6 +412,10 @@ public class GoblinNftExCodeServiceImpl implements IGoblinNftExCodeService {
return ResponseDto.failure("解析文件失败!"); return ResponseDto.failure("解析文件失败!");
} }
if(phoneList.size()>=100){
return ResponseDto.failure("批量空投暂时数量不能大于100");
}
if (StringUtil.isNotBlank(phonestr)) { if (StringUtil.isNotBlank(phonestr)) {
phonestr.deleteCharAt(phonestr.length() - 1); phonestr.deleteCharAt(phonestr.length() - 1);
} }
......
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