BUGFIX:机器人聊天;

This commit is contained in:
shahaibo
2023-10-11 17:10:45 +08:00
parent 3ebb3842c2
commit 6549e2baeb

View File

@@ -199,7 +199,7 @@ public class ChatRobotServiceImpl implements ChatRobotService {
String bucketName = "aida-sys-image"; String bucketName = "aida-sys-image";
String path = "images/" + array.getString(i); String path = "images/" + array.getString(i);
QueryWrapper<Library> qw = new QueryWrapper<>(); QueryWrapper<Library> qw = new QueryWrapper<>();
qw.lambda().eq(Library::getUrl, bucketName + "/" + path); qw.lambda().eq(Library::getUrl, bucketName + "/female/" + path);
qw.lambda().eq(Library::getAccountId, chatSendDTO.getUser_id()); qw.lambda().eq(Library::getAccountId, chatSendDTO.getUser_id());
qw.lambda().last("limit 1"); qw.lambda().last("limit 1");
List<Library> libraryList = libraryMapper.selectList(qw); List<Library> libraryList = libraryMapper.selectList(qw);
@@ -207,7 +207,7 @@ public class ChatRobotServiceImpl implements ChatRobotService {
chatRobotLibraryVO.setId(libraryList.get(0).getId()); chatRobotLibraryVO.setId(libraryList.get(0).getId());
} }
String aidaSysImage = minioUtil.getPresignedUrl("aida-sys-image/images/female/" + array.getString(i), 24 * 60); String aidaSysImage = minioUtil.getPresignedUrl("aida-sys-image/images/female/" + array.getString(i), 24 * 60);
chatRobotLibraryVO.setUrl(bucketName + "/" + path); chatRobotLibraryVO.setUrl(bucketName + "/female/" + path);
chatRobotLibraryVO.setPresignedUrl(aidaSysImage); chatRobotLibraryVO.setPresignedUrl(aidaSysImage);
chatRobotLibraryVOList.add(chatRobotLibraryVO); chatRobotLibraryVOList.add(chatRobotLibraryVO);
} }