机器人返回图片数量修改

This commit is contained in:
2024-01-04 11:47:09 +08:00
parent fc4a59d41a
commit 7a309bcb17

View File

@@ -190,10 +190,11 @@ public class ChatRobotServiceImpl implements ChatRobotService {
} else {
chatRobot.setSuccessful(1);
chatRobotMapper.insert(chatRobot);
for (int i = 0; i < array.size(); i++) {
if (i >= 3) {
continue;
}
int size = Math.min(array.size(), 4);
for (int i = 0; i < size; i++) {
// if (i >= 3) {
// continue;
// }
ChatRobotLibraryVO chatRobotLibraryVO = new ChatRobotLibraryVO();
String bucketName = sysImage;
String prefix = getPrefix(array.getString(i),chatSendDTO.getGender());