From 3be6f225c0911c9a81a280d8e6fce0861ae9237c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?=
<41963737+Vaecq@users.noreply.github.com>
Date: Thu, 18 Apr 2024 19:25:10 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/theme/dedebiz/article_article.htm | 15 +++++++--------
src/theme/dedebiz/article_default.htm | 15 +++++++--------
src/theme/dedebiz/article_default_sg.htm | 15 +++++++--------
src/theme/dedebiz/article_image.htm | 15 +++++++--------
src/theme/dedebiz/article_infos.htm | 15 +++++++--------
src/theme/dedebiz/article_soft.htm | 15 +++++++--------
6 files changed, 42 insertions(+), 48 deletions(-)
diff --git a/src/theme/dedebiz/article_article.htm b/src/theme/dedebiz/article_article.htm
index 4b3fa41d..51b1dcc9 100644
--- a/src/theme/dedebiz/article_article.htm
+++ b/src/theme/dedebiz/article_article.htm
@@ -77,7 +77,7 @@
//获取顶踩数据
function GetDigg(aid,cid) {
let url = `{dede:global.cfg_phpurl/}/digg_ajax.php?id=${aid}&cid=${cid}&format=json`;
- $.get(url, function (data) {
+ $.get(url, function(data) {
let reval = JSON.parse(data);
if (reval.code === 200) {
$("#goodpost").html(reval.data.goodpost);
@@ -107,12 +107,11 @@
if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖"); return; }
else saveid += ',' + aid;
SetCookie('diggid', saveid, 1);
- }
- else {
+ } else {
SetCookie('diggid', aid, 1);
}
let url = "{dede:global.cfg_phpurl/}/digg_ajax.php?action=" + ftype + "&id=" + aid + "&format=json&cid={dede:field.channel/}";
- $.get(url, function (data) {
+ $.get(url, function(data) {
let reval = JSON.parse(data);
if (reval.code === 200) {
$("#goodpost").html(reval.data.goodpost);
@@ -134,7 +133,7 @@
validate: $("#iptValidate").val(),
notuser: $("#iptAny").is(":checked") ? "1" : "",
};
- $.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function (data) {
+ $.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function(data) {
let result = JSON.parse(data);
if (result.code === 200) {
ShowAlert("#feedback-alert", result.msg, "success");
@@ -158,7 +157,7 @@
aid : "{dede:field.id/}",
msg : content,
}
- $.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function (data) {
+ $.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function(data) {
let result = JSON.parse(data);
if (result.code === 200) {
ShowAlert(`._feedback_reply[for="${fid}"]`, result.msg, "success");
@@ -193,7 +192,7 @@
$.get("{dede:global.cfg_phpurl/}/feedback.php", {
"aid" : "{dede:field.id/}",
"fid" : fid,
- }, function (data) {
+ }, function(data) {
let result = JSON.parse(data);
let tpl = `
@@ -236,7 +235,7 @@
good : g,
fid : fid,
}
- $.post("{dede:global.cfg_phpurl/}/feedback.php", good, function (data) {
+ $.post("{dede:global.cfg_phpurl/}/feedback.php", good, function(data) {
let result = JSON.parse(data);
$(`#feedbackGood${fid}`).html(result.data);
})
diff --git a/src/theme/dedebiz/article_default.htm b/src/theme/dedebiz/article_default.htm
index f2941bf5..ed774813 100644
--- a/src/theme/dedebiz/article_default.htm
+++ b/src/theme/dedebiz/article_default.htm
@@ -83,7 +83,7 @@
//获取顶踩数据
function GetDigg(aid,cid) {
let url = `{dede:global.cfg_phpurl/}/digg_ajax.php?id=${aid}&cid=${cid}&format=json`;
- $.get(url, function (data) {
+ $.get(url, function(data) {
let reval = JSON.parse(data);
if (reval.code === 200) {
$("#goodpost").html(reval.data.goodpost);
@@ -113,12 +113,11 @@
if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖"); return; }
else saveid += ',' + aid;
SetCookie('diggid', saveid, 1);
- }
- else {
+ } else {
SetCookie('diggid', aid, 1);
}
let url = "{dede:global.cfg_phpurl/}/digg_ajax.php?action=" + ftype + "&id=" + aid + "&format=json&cid={dede:field.channel/}";
- $.get(url, function (data) {
+ $.get(url, function(data) {
let reval = JSON.parse(data);
if (reval.code === 200) {
$("#goodpost").html(reval.data.goodpost);
@@ -140,7 +139,7 @@
validate: $("#iptValidate").val(),
notuser: $("#iptAny").is(":checked") ? "1" : "",
};
- $.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function (data) {
+ $.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function(data) {
let result = JSON.parse(data);
if (result.code === 200) {
ShowAlert("#feedback-alert", result.msg, "success");
@@ -164,7 +163,7 @@
aid : "{dede:field.id/}",
msg : content,
}
- $.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function (data) {
+ $.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function(data) {
let result = JSON.parse(data);
if (result.code === 200) {
ShowAlert(`._feedback_reply[for="${fid}"]`, result.msg, "success");
@@ -199,7 +198,7 @@
$.get("{dede:global.cfg_phpurl/}/feedback.php", {
"aid" : "{dede:field.id/}",
"fid" : fid,
- }, function (data) {
+ }, function(data) {
let result = JSON.parse(data);
let tpl = `
@@ -242,7 +241,7 @@
good : g,
fid : fid,
}
- $.post("{dede:global.cfg_phpurl/}/feedback.php", good, function (data) {
+ $.post("{dede:global.cfg_phpurl/}/feedback.php", good, function(data) {
let result = JSON.parse(data);
$(`#feedbackGood${fid}`).html(result.data);
})
diff --git a/src/theme/dedebiz/article_default_sg.htm b/src/theme/dedebiz/article_default_sg.htm
index a7496e52..f791a64a 100644
--- a/src/theme/dedebiz/article_default_sg.htm
+++ b/src/theme/dedebiz/article_default_sg.htm
@@ -86,7 +86,7 @@
//获取顶踩数据
function GetDigg(aid,cid) {
let url = `{dede:global.cfg_phpurl/}/digg_ajax.php?id=${aid}&cid=${cid}&format=json`;
- $.get(url, function (data) {
+ $.get(url, function(data) {
let reval = JSON.parse(data);
if (reval.code === 200) {
$("#goodpost").html(reval.data.goodpost);
@@ -116,12 +116,11 @@
if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖"); return; }
else saveid += ',' + aid;
SetCookie('diggid', saveid, 1);
- }
- else {
+ } else {
SetCookie('diggid', aid, 1);
}
let url = "{dede:global.cfg_phpurl/}/digg_ajax.php?action=" + ftype + "&id=" + aid + "&format=json&cid={dede:field.channel/}";
- $.get(url, function (data) {
+ $.get(url, function(data) {
let reval = JSON.parse(data);
if (reval.code === 200) {
$("#goodpost").html(reval.data.goodpost);
@@ -143,7 +142,7 @@
validate: $("#iptValidate").val(),
notuser: $("#iptAny").is(":checked") ? "1" : "",
};
- $.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function (data) {
+ $.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function(data) {
let result = JSON.parse(data);
if (result.code === 200) {
ShowAlert("#feedback-alert", result.msg, "success");
@@ -167,7 +166,7 @@
aid : "{dede:field.id/}",
msg : content,
}
- $.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function (data) {
+ $.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function(data) {
let result = JSON.parse(data);
if (result.code === 200) {
ShowAlert(`._feedback_reply[for="${fid}"]`, result.msg, "success");
@@ -202,7 +201,7 @@
$.get("{dede:global.cfg_phpurl/}/feedback.php", {
"aid" : "{dede:field.id/}",
"fid" : fid,
- }, function (data) {
+ }, function(data) {
let result = JSON.parse(data);
let tpl = `
@@ -245,7 +244,7 @@
good : g,
fid : fid,
}
- $.post("{dede:global.cfg_phpurl/}/feedback.php", good, function (data) {
+ $.post("{dede:global.cfg_phpurl/}/feedback.php", good, function(data) {
let result = JSON.parse(data);
$(`#feedbackGood${fid}`).html(result.data);
})
diff --git a/src/theme/dedebiz/article_image.htm b/src/theme/dedebiz/article_image.htm
index c0aaa3ac..b4604e27 100644
--- a/src/theme/dedebiz/article_image.htm
+++ b/src/theme/dedebiz/article_image.htm
@@ -150,7 +150,7 @@
//获取顶踩数据
function GetDigg(aid,cid) {
let url = `{dede:global.cfg_phpurl/}/digg_ajax.php?id=${aid}&cid=${cid}&format=json`;
- $.get(url, function (data) {
+ $.get(url, function(data) {
let reval = JSON.parse(data);
if (reval.code === 200) {
$("#goodpost").html(reval.data.goodpost);
@@ -180,12 +180,11 @@
if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖"); return; }
else saveid += ',' + aid;
SetCookie('diggid', saveid, 1);
- }
- else {
+ } else {
SetCookie('diggid', aid, 1);
}
let url = "{dede:global.cfg_phpurl/}/digg_ajax.php?action=" + ftype + "&id=" + aid + "&format=json&cid={dede:field.channel/}";
- $.get(url, function (data) {
+ $.get(url, function(data) {
let reval = JSON.parse(data);
if (reval.code === 200) {
$("#goodpost").html(reval.data.goodpost);
@@ -207,7 +206,7 @@
validate: $("#iptValidate").val(),
notuser: $("#iptAny").is(":checked") ? "1" : "",
};
- $.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function (data) {
+ $.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function(data) {
let result = JSON.parse(data);
if (result.code === 200) {
ShowAlert("#feedback-alert", result.msg, "success");
@@ -231,7 +230,7 @@
aid : "{dede:field.id/}",
msg : content,
}
- $.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function (data) {
+ $.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function(data) {
let result = JSON.parse(data);
if (result.code === 200) {
ShowAlert(`._feedback_reply[for="${fid}"]`, result.msg, "success");
@@ -266,7 +265,7 @@
$.get("{dede:global.cfg_phpurl/}/feedback.php", {
"aid" : "{dede:field.id/}",
"fid" : fid,
- }, function (data) {
+ }, function(data) {
let result = JSON.parse(data);
let tpl = `
@@ -309,7 +308,7 @@
good : g,
fid : fid,
}
- $.post("{dede:global.cfg_phpurl/}/feedback.php", good, function (data) {
+ $.post("{dede:global.cfg_phpurl/}/feedback.php", good, function(data) {
let result = JSON.parse(data);
$(`#feedbackGood${fid}`).html(result.data);
})
diff --git a/src/theme/dedebiz/article_infos.htm b/src/theme/dedebiz/article_infos.htm
index 56cf86d5..1005ce20 100644
--- a/src/theme/dedebiz/article_infos.htm
+++ b/src/theme/dedebiz/article_infos.htm
@@ -84,7 +84,7 @@
//获取顶踩数据
function GetDigg(aid,cid) {
let url = `{dede:global.cfg_phpurl/}/digg_ajax.php?id=${aid}&cid=${cid}&format=json`;
- $.get(url, function (data) {
+ $.get(url, function(data) {
let reval = JSON.parse(data);
if (reval.code === 200) {
$("#goodpost").html(reval.data.goodpost);
@@ -114,12 +114,11 @@
if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖"); return; }
else saveid += ',' + aid;
SetCookie('diggid', saveid, 1);
- }
- else {
+ } else {
SetCookie('diggid', aid, 1);
}
let url = "{dede:global.cfg_phpurl/}/digg_ajax.php?action=" + ftype + "&id=" + aid + "&format=json&cid={dede:field.channel/}";
- $.get(url, function (data) {
+ $.get(url, function(data) {
let reval = JSON.parse(data);
if (reval.code === 200) {
$("#goodpost").html(reval.data.goodpost);
@@ -141,7 +140,7 @@
validate: $("#iptValidate").val(),
notuser: $("#iptAny").is(":checked") ? "1" : "",
};
- $.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function (data) {
+ $.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function(data) {
let result = JSON.parse(data);
if (result.code === 200) {
ShowAlert("#feedback-alert", result.msg, "success");
@@ -165,7 +164,7 @@
aid : "{dede:field.id/}",
msg : content,
}
- $.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function (data) {
+ $.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function(data) {
let result = JSON.parse(data);
if (result.code === 200) {
ShowAlert(`._feedback_reply[for="${fid}"]`, result.msg, "success");
@@ -200,7 +199,7 @@
$.get("{dede:global.cfg_phpurl/}/feedback.php", {
"aid" : "{dede:field.id/}",
"fid" : fid,
- }, function (data) {
+ }, function(data) {
let result = JSON.parse(data);
let tpl = `
@@ -243,7 +242,7 @@
good : g,
fid : fid,
}
- $.post("{dede:global.cfg_phpurl/}/feedback.php", good, function (data) {
+ $.post("{dede:global.cfg_phpurl/}/feedback.php", good, function(data) {
let result = JSON.parse(data);
$(`#feedbackGood${fid}`).html(result.data);
})
diff --git a/src/theme/dedebiz/article_soft.htm b/src/theme/dedebiz/article_soft.htm
index 9e55c28f..c09751b9 100644
--- a/src/theme/dedebiz/article_soft.htm
+++ b/src/theme/dedebiz/article_soft.htm
@@ -91,7 +91,7 @@
//获取顶踩数据
function GetDigg(aid,cid) {
let url = `{dede:global.cfg_phpurl/}/digg_ajax.php?id=${aid}&cid=${cid}&format=json`;
- $.get(url, function (data) {
+ $.get(url, function(data) {
let reval = JSON.parse(data);
if (reval.code === 200) {
$("#goodpost").html(reval.data.goodpost);
@@ -121,12 +121,11 @@
if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖"); return; }
else saveid += ',' + aid;
SetCookie('diggid', saveid, 1);
- }
- else {
+ } else {
SetCookie('diggid', aid, 1);
}
let url = "{dede:global.cfg_phpurl/}/digg_ajax.php?action=" + ftype + "&id=" + aid + "&format=json&cid={dede:field.channel/}";
- $.get(url, function (data) {
+ $.get(url, function(data) {
let reval = JSON.parse(data);
if (reval.code === 200) {
$("#goodpost").html(reval.data.goodpost);
@@ -148,7 +147,7 @@
validate: $("#iptValidate").val(),
notuser: $("#iptAny").is(":checked") ? "1" : "",
};
- $.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function (data) {
+ $.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function(data) {
let result = JSON.parse(data);
if (result.code === 200) {
ShowAlert("#feedback-alert", result.msg, "success");
@@ -172,7 +171,7 @@
aid : "{dede:field.id/}",
msg : content,
}
- $.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function (data) {
+ $.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function(data) {
let result = JSON.parse(data);
if (result.code === 200) {
ShowAlert(`._feedback_reply[for="${fid}"]`, result.msg, "success");
@@ -207,7 +206,7 @@
$.get("{dede:global.cfg_phpurl/}/feedback.php", {
"aid" : "{dede:field.id/}",
"fid" : fid,
- }, function (data) {
+ }, function(data) {
let result = JSON.parse(data);
let tpl = `