fix: 添加一个报错提示

This commit is contained in:
ikechan8370 2023-05-12 20:17:03 +08:00
parent 926f07c8e9
commit 3f42c05388

View file

@ -138,6 +138,9 @@ export default class XinghuoClient {
createChatListRes = await createChatListRes.json()
if (createChatListRes.data?.id) {
logger.info('星火对话创建成功:' + createChatListRes.data.id)
} else {
logger.error('星火对话创建成功: ' + JSON.stringify(createChatListRes))
throw new Error('星火对话创建成功:' + JSON.stringify(createChatListRes))
}
return {
chatListId: createChatListRes.data?.id,