From a06132a4c2327579c9bd58eff3ad4fb89412aef4 Mon Sep 17 00:00:00 2001 From: xiongxiaoyang <1179705413@qq.com> Date: Sun, 23 Mar 2025 11:50:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E7=89=88=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/green/html/author/content_add.html | 8 ++++++-- templates/green/html/author/index.html | 15 +++++++++++++-- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/templates/green/html/author/content_add.html b/templates/green/html/author/content_add.html index 771f2fd..7e4c0c8 100644 --- a/templates/green/html/author/content_add.html +++ b/templates/green/html/author/content_add.html @@ -347,8 +347,12 @@ success: function(res){ layer.close(loading); // 将生成的内容追加到文本末尾 - const newText = "\n\n" + res.data; // 添加换行符分隔 - typeWriter(textarea, newText); // 使用打字机效果 + if(res.code == '200'){ + const newText = "\n\n【AI生成内容】" + res.data; // 添加换行符分隔 + typeWriter(textarea, newText); // 使用打字机效果 + }else{ + layer.msg('AI内容生成失败,请稍后重试'); + } }, error: function(){ layer.msg('请求失败,请稍后重试'); diff --git a/templates/green/html/author/index.html b/templates/green/html/author/index.html index b843bab..1a3c3da 100644 --- a/templates/green/html/author/index.html +++ b/templates/green/html/author/index.html @@ -51,7 +51,8 @@