BUGFIX:机器人聊天;
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user