|
|
@@ -715,7 +715,9 @@ public class MidjourneyServiceImpl implements MidjourneyService {
|
|
|
try {
|
|
|
conversation = (MidjourneyUserConversation)obj;
|
|
|
}catch (Exception e){
|
|
|
- conversation = JSONUtil.parseObj(obj).toBean(MidjourneyUserConversation.class);
|
|
|
+ String jsonStr = JSONUtil.toJsonStr(obj);
|
|
|
+ conversation = JSONUtil.parseObj(jsonStr).toBean(MidjourneyUserConversation.class);
|
|
|
+ redisService.set(RedisService.key.MIDJOURNEY_CONVERSATION.getName() + id, conversation, RedisService.key.MIDJOURNEY_CONVERSATION.getTimeout());
|
|
|
}
|
|
|
}
|
|
|
|