完善小红书评论匹配、多图回复和自动回执
- 按内容类型读取笔记评论并匹配关键词,从对应话术库随机轮换话术及绑定图片 - 核对原评论、完整正文和全部附件,记录提交意图后发送并核对同一条回复 - 更新配置预览和开发进度,离线构建及 51 项单测通过,真机联调待开展
This commit is contained in:
@@ -339,7 +339,7 @@
|
||||
<dt><label for="target-platform">平台</label></dt>
|
||||
<dd><select id="target-platform" class="control settings-input">
|
||||
<option value="douyin">抖音</option>
|
||||
<option value="xiaohongshu">小红书(仅浏览)</option>
|
||||
<option value="xiaohongshu">小红书</option>
|
||||
<option value="bilibili">哔哩哔哩(待适配)</option>
|
||||
</select></dd>
|
||||
</div>
|
||||
@@ -476,7 +476,6 @@
|
||||
const byId = id => document.getElementById(id);
|
||||
const scope = byId("search-scope");
|
||||
const platformPicker = byId("target-platform");
|
||||
const modePicker = byId("reply-mode");
|
||||
const typePicker = byId("content-type");
|
||||
const rulePicker = byId("keyword-rule");
|
||||
const phrasePicker = byId("reply-phrase");
|
||||
@@ -673,8 +672,8 @@
|
||||
const unit = notes ? "笔记" : "视频";
|
||||
byId("content-limit-label").textContent = `单次任务${unit}上限`;
|
||||
byId("reply-limit-label").textContent = `每条${unit}回复上限`;
|
||||
byId("reply-scope-hint").textContent = notes ? "小红书当前仅支持浏览。" : "达到回复上限或找不到更多匹配评论时,进入下一个视频。";
|
||||
byId("content-scope-hint").textContent = notes ? "按内容类型搜索笔记。" : "按内容类型搜索视频,按关键词匹配评论。每个关键词可配置多条话术。";
|
||||
byId("reply-scope-hint").textContent = `达到回复上限或找不到更多匹配评论时,进入下一个${unit}。`;
|
||||
byId("content-scope-hint").textContent = `按内容类型搜索${unit},按关键词匹配评论。每个关键词可配置多条话术。`;
|
||||
});
|
||||
byId("save-preview").addEventListener("click", () => {
|
||||
const status = byId("library-status");
|
||||
@@ -684,9 +683,6 @@
|
||||
if (platformPicker.value === "bilibili") {
|
||||
error = "哔哩哔哩还未适配,请选择已接入的平台。";
|
||||
focus = platformPicker;
|
||||
} else if (platformPicker.value === "xiaohongshu" && modePicker.value !== "仅浏览") {
|
||||
error = "小红书当前仅支持浏览,请将处理方式设为「仅浏览」。";
|
||||
focus = modePicker;
|
||||
}
|
||||
status.textContent = error || "预览配置已更新。";
|
||||
status.classList.toggle("error", Boolean(error));
|
||||
|
||||
Reference in New Issue
Block a user