|
|
|
@ -172,13 +172,11 @@ public class SaveToFileNewTask {
|
|
|
|
|
? TxtUtils.txtParseListVyUrl(filePath) :
|
|
|
|
|
fileFormat.contains(FileConstant.CSV_FILE_SUB_NAME)
|
|
|
|
|
? ToolExcelUtils.csvParseListByUrl(filePath)
|
|
|
|
|
: ToolExcelUtils.excelParseListByUrl(filePath);
|
|
|
|
|
|
|
|
|
|
: ToolExcelUtils.excelParseListByUrl(filePath);
|
|
|
|
|
Map<Integer, List<String>> preEncryptNumMap = listT.stream().filter
|
|
|
|
|
(phone -> StringUtils.isNotBlank(phone.trim())).collect(Collectors.groupingBy(String::length));
|
|
|
|
|
if (CollectionUtil.isNotEmpty(preEncryptNumMap)) {
|
|
|
|
|
// 分批调用接口进行加密
|
|
|
|
|
|
|
|
|
|
if (tbUploadFileNewDto.getEncryptionType() == DefaultConstant.TWO_NUMBER) {
|
|
|
|
|
List<String> decryptionList = preEncryptNumMap.get(2 << 4);
|
|
|
|
|
List<String> stringList = decryptFile(decryptionList);
|
|
|
|
@ -231,10 +229,8 @@ public class SaveToFileNewTask {
|
|
|
|
|
DecryptionJsonContent build =
|
|
|
|
|
DecryptionJsonContent.builder().cellphoneMd5
|
|
|
|
|
(decryptStr).requestId(RandomUtil.randomString(TEN_NUM)).build();
|
|
|
|
|
|
|
|
|
|
// 调用HTTP请求发送数据
|
|
|
|
|
DecryptionDTO decryptionDTO = JSONUtil.toBean(HttpUtil.post(decryptAddress, JSON.toJSONString(build)), DecryptionDTO.class);
|
|
|
|
|
log.info("================ response as {} ================", JSONUtil.toJsonStr(decryptionDTO));
|
|
|
|
|
if (StringUtils.isNotBlank(decryptionDTO.getReason())
|
|
|
|
|
&& "success".equals(decryptionDTO.getReason())) {
|
|
|
|
|
if (StringUtils.isNotBlank(decryptionDTO.getCellPhone())) {
|
|
|
|
|