我這張嘴跟著我也是一點不虧啊。
0) {
$.ajax({
type: "POST",
url: "/bbs/flagaicomment",
data: { id: _this.parent().parent().data("commentid"), Type: 0 },
dataType: "json",
success: function (json) {
window.location.reload();
},
error: function (err) {
$.messager.alert("", "頁面請求失敗,請刷新重試!");
}
});
} else {
_this.prev().find("img").attr("data-hideaigc", true)
$.ajax({
type: "POST",
url: "/bbs/updatereply",
data: {
id: _this.parent().parent().data("commentid"),
pid: EditPId,
content: encodeURIComponent(_this.prev().html()),
__RequestVerificationToken: $('[name=__RequestVerificationToken]').val(),
Type: 0,
userSelectAIGCTag: false,
isauthorsee: false,
imgcode: "",
},
dataType: "json",
success: function (json) {
window.location.reload();
},
error: function (err) {
$.messager.alert("", "頁面請求失敗,請刷新重試!");
}
});
}
});
$('#alertMsg_Cancel')[0].style.marginBottom = "20px"
})
// 普通貼/攝影貼/投票貼帖子正文隱藏ai標(biāo)識
$(".BSHARE_POP").on("click", ".AiClassTip", function () {
if (!LoginInforIsAdmin) {
return;
}
var _this = $(this)
var ImageUrl = parentTitle.indexOf("蓋樂世影像") != -1 ? _this.parent().find(".ueditor_img").attr("src") : _this.prev().attr("src")
$.messager.confirm('', "是否要隱藏此標(biāo)識", function () {
var obj = {
Content: encodeURIComponent(EditContent.replace(`src="${ImageUrl}"`, `src="${ImageUrl}" data-HideAigc="true"`)),
PId: EditPId,//帖子ID
TId: EditTId,//主題
FId: EditFId,//二級版塊
IsAuthorSee: EditIsAuthorSee,//回復(fù)僅作者可見
PTId: EditPTId,//帖子分類
HaveImg: EditHaveImg,//內(nèi)容是否有圖片
Img: EditImg,//代表圖片地址
HaveVideo: EditHaveVideo,//視頻
Attachment: EditAttachment,//附件
Status: EditStatus,
PublishTime: EditPublishTime,
IsSync: EditIsSync,
Title: eventshareTitle,
Token: data_token,
__RequestVerificationToken: $('[name=__RequestVerificationToken]').val(),
AigcHideEdit: true,
}
$.post("/BBS/UpdatePost", obj, function (json) {
window.location.reload();
});
}, function () {
});
$('#alertMsg_Cancel')[0].style.marginBottom = "20px"
})
})
function controlAITips(info) {
if (isUserStatementAI(info)) {
//顯示作者聲明:含有AI生成內(nèi)容 >
$('.AiClassFixed').html('
作者聲明:含有AI生成內(nèi)容 >
疑似使用了AI生成技術(shù),請謹(jǐn)慎甄別 >
疑似含有AI生成內(nèi)容,請謹(jǐn)慎甄別 >


