diff --git a/src/views/AiEmotion.vue b/src/views/AiEmotion.vue index 8b6b9b8..8374b62 100644 --- a/src/views/AiEmotion.vue +++ b/src/views/AiEmotion.vue @@ -2053,31 +2053,31 @@ async function handleSendMessage(input, onComplete) { }); // 检查用户剩余次数 - await chatStore.getUserCount(); // 获取最新的用户次数 - if (chatStore.UserCount <= 0) { - const aiMessage = reactive({ - sender: "ai", - text: "您的剩余次数为0,无法使用情绪大模型,请联系客服或购买服务包。", - }); - messages.value.push(aiMessage); - - // 将AI消息添加到emotion store中 - emotionStore.addConversation({ - sender: "ai", - text: "您的剩余次数为0,无法使用情绪大模型,请联系客服或购买服务包。", - timestamp: new Date().toISOString(), - }); - // 停止图片旋转,恢复历史数据 - isRotating.value = false; - messages.value = [...previousMessages, ...messages.value]; - // 调用完成回调,重新启用输入框 - if (onComplete && typeof onComplete === "function") { - onComplete(); - // 清除保存的回调函数 - currentOnCompleteCallback.value = null; - } - return; - } + // await chatStore.getUserCount(); // 获取最新的用户次数 + // if (chatStore.UserCount <= 0) { + // const aiMessage = reactive({ + // sender: "ai", + // text: "您的剩余次数为0,无法使用情绪大模型,请联系客服或购买服务包。", + // }); + // messages.value.push(aiMessage); + + // // 将AI消息添加到emotion store中 + // emotionStore.addConversation({ + // sender: "ai", + // text: "您的剩余次数为0,无法使用情绪大模型,请联系客服或购买服务包。", + // timestamp: new Date().toISOString(), + // }); + // // 停止图片旋转,恢复历史数据 + // isRotating.value = false; + // messages.value = [...previousMessages, ...messages.value]; + // // 调用完成回调,重新启用输入框 + // if (onComplete && typeof onComplete === "function") { + // onComplete(); + // // 清除保存的回调函数 + // currentOnCompleteCallback.value = null; + // } + // return; + // } // 开始思考过程(不带股票名称) const thinkingMessageRef = await showThinkingProcess();