|
|
@@ -70,8 +70,8 @@ public class MidjourneyServiceImpl implements MidjourneyService {
|
|
|
.setMode(mode).setStartTime(System.currentTimeMillis()).setProgress("0%")
|
|
|
.setStatus("IN_PROGRESS").setTaskId(taskId);
|
|
|
if (MapUtil.isNotEmpty(properties)) {
|
|
|
- conversation.setChannelId(Long.parseLong(properties.get("discordChannelId").toString()))
|
|
|
- .setInstanceId(Long.parseLong(properties.get("discordInstanceId").toString()));
|
|
|
+ conversation.setChannelId(properties.get("discordChannelId") == null ? null : Long.parseLong(properties.get("discordChannelId").toString()))
|
|
|
+ .setInstanceId(properties.get("discordInstanceId") == null ? null : Long.parseLong(properties.get("discordInstanceId").toString()));
|
|
|
}
|
|
|
conversationMapper.insert(conversation);
|
|
|
return conversation;
|