焦怡璇 1 年之前
父節點
當前提交
a55aead079
共有 1 個文件被更改,包括 11 次插入5 次删除
  1. 11 5
      heartvoice-app/src/app/report/report.component.ts

+ 11 - 5
heartvoice-app/src/app/report/report.component.ts

@@ -79,6 +79,7 @@ export class ReportComponent implements OnInit {
         console.log('MBTI 类型:', this.data1);
       } else {
         console.log('没有找到 MBTI 类型');
+        this.data1 = "无数据";
       }
     } else {
       this.data1 = this.data.data.data1;
@@ -105,14 +106,19 @@ export class ReportComponent implements OnInit {
           this.extractOddIndexedContents(latestChat.content);
           await  this.waitForData1();
           await  this.updateChatData(latestChat.content);
-          console.log('没生成聊天分析');
+          console.log('没生成聊天分析');
         }
+      }else{
+        this.data2 = "没数据";
+      this.data3 = "没数据";
+      this.data4 = "没数据";
+      console.log('没聊天数据');
       }
     } else {
       this.data2 = "没数据";
       this.data3 = "没数据";
       this.data4 = "没数据";
-      console.log('聊天数据');
+      console.log('不用聊天数据');
     }
   }
 
@@ -174,13 +180,13 @@ export class ReportComponent implements OnInit {
 
       聊天对话:(如果聊天内容没数据就显示无数据)
       (有数据的话显示
-      通过你与AI的对话对您的情绪进行分析,察觉到您的情绪不太好,(不要显示用户表达的话和情感得分))***
+      通过你与AI的对话对您的情绪进行分析,察觉到您的情绪不太好,(不要显示用户表达的话和情感得分))***
 
       二、评估结果
 
       性格偏向:你是一个***人,***
 
-      情绪状态:*****
+      情绪状态:*****(不要显示用户表达的话和情感得分)
 
       认知与情绪调节:****
 
@@ -241,7 +247,7 @@ export class ReportComponent implements OnInit {
       }).catch((error) => {
           console.error('保存时出错:', error);
       });
-  }, 20000); // 延迟 20 秒后保存
+  }, 15000); // 延迟 20 秒后保存