修改导入 校验

This commit is contained in:
haozq 2025-02-24 14:42:36 +08:00
parent d77643a3fb
commit da4bc8d3d4
2 changed files with 5 additions and 5 deletions

View File

@ -66,7 +66,7 @@ public class TokenService
if (StringUtils.isNotEmpty(existingToken))
{
// 删除已有的 token
// delLoginUser(existingToken);
delLoginUser(existingToken);
log.info("用户在其他设备上登录");
}

View File

@ -477,16 +477,16 @@ public class ImportServiceImpl implements ImportService {
beforeName = currentName;
folderName = new StringBuilder();
}
if (i == (list.size() - 1)) {
map.put(beforeName, folderName.toString());
}
if (!"其他文件".equals(fileName.split("/")[_index + 1])) {
folderName.append(fileName.split("/")[_index + 1]).append(",");
}
if (!"人脸照片".equals(fileName.split("/")[_index + 1])) {
folderName.append(fileName.split("/")[_index + 1]).append(",");
}
if (i == (list.size() - 1)) {
map.put(beforeName, folderName.toString());
}
// 使用set方法对名称进行过滤 保持namePhoneList数据的唯一性
if (uniqueNames.add(currentName)) {
namePhoneList.add(currentName);