SanHQin 8 months ago
parent
commit
989304d03c

+ 2 - 2
src/components/classRoomHelper/component/dialogArea.vue

@@ -405,7 +405,7 @@ export default {
         this.ajax
           .post("https://gpt4.cocorobo.cn/ai_agent_park_chat_new", params)
           .then(res => {
-            if (res.data.FunctionResponse.result == "发送成功") {
+            if (converter(res.data.FunctionResponse.result) == converter("发送成功")) {
             } else {
               this.chatLoading = false;
 							console.log(res.data.FunctionResponse.result)
@@ -501,7 +501,7 @@ export default {
           // .post("https://gpt4.cocorobo.cn/chat", params)
 					.post("https://gpt4.cocorobo.cn/ai_agent_park_chat_new", params)
           .then(res => {
-            if (res.data.FunctionResponse.result == "发送成功") {
+            if (converter(res.data.FunctionResponse.result) == converter("发送成功")) {
             } else {
               this.chatLoading = false;
               // this.$message.warning(res.data.FunctionResponse.result);

+ 4 - 4
src/components/classRoomHelper/component/searchArea.vue

@@ -1037,7 +1037,7 @@ export default {
         // .post("https://gpt4.cocorobo.cn/chat", params)
 				.post("https://gpt4.cocorobo.cn/ai_agent_park_chat_new", params)
         .then(res => {
-          if (res.data.FunctionResponse.result == "发送成功") {
+          if (converter(res.data.FunctionResponse.result) == converter("发送成功")) {
           } else {
             // this.$message.warning(res.data.FunctionResponse.result);
 						console.log(res.data.FunctionResponse.result)
@@ -1204,7 +1204,7 @@ ${_atList
         // .post("https://claude3.cocorobo.cn/chat", params)
 				.post("https://gpt4.cocorobo.cn/ai_agent_park_chat_new", params)
         .then(res => {
-          if (res.data.FunctionResponse.result == "发送成功") {
+          if (converter(res.data.FunctionResponse.result) == converter("发送成功")) {
           } else {
             // this.$message.warning(res.data.FunctionResponse.result);
 						console.log(res.data.FunctionResponse.result)
@@ -1938,7 +1938,7 @@ ${_wordData}
             // .post("https://claude3.cocorobo.cn/chat", params)
 						.post("https://gpt4.cocorobo.cn/ai_agent_park_chat_new", params)
             .then(res => {
-              if (res.data.FunctionResponse.result == "发送成功") {
+              if (converter(res.data.FunctionResponse.result) == converter("发送成功")) {
                 this.loading = false;
               } else {
                 // this.$message.warning(res.data.FunctionResponse.result);
@@ -2132,7 +2132,7 @@ ${_wordData}
         // .post("https://claude3.cocorobo.cn/chat", params)
 				.post("https://gpt4.cocorobo.cn/ai_agent_park_chat_new", params)
         .then(res => {
-          if (res.data.FunctionResponse.result == "发送成功") {
+          if (converter(res.data.FunctionResponse.result) == converter("发送成功")) {
           } else {
             // this.$message.warning(res.data.FunctionResponse.result);
 						console.log(res.data.FunctionResponse.result)