BUGFIX:机器人聊天;
This commit is contained in:
@@ -199,7 +199,7 @@ public class ChatRobotServiceImpl implements ChatRobotService {
|
||||
String bucketName = "aida-sys-image";
|
||||
String path = "images/" + array.getString(i);
|
||||
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().last("limit 1");
|
||||
List<Library> libraryList = libraryMapper.selectList(qw);
|
||||
@@ -207,7 +207,7 @@ public class ChatRobotServiceImpl implements ChatRobotService {
|
||||
chatRobotLibraryVO.setId(libraryList.get(0).getId());
|
||||
}
|
||||
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);
|
||||
chatRobotLibraryVOList.add(chatRobotLibraryVO);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user