This commit is contained in:
hackrobot
2024-08-12 09:05:48 +08:00
parent 6e80df233b
commit 38767a6b3e

View File

@@ -59,7 +59,9 @@ const createDecoratedTitleHTML = (text: any) => {
const bottomBorder = `${cornerBottomLeft}${edgeLength}${cornerBottomRight}`;
const middleLine = ` 📢 ${text}`;
return `<div>${topBorder}<br/>${middleLine}<br/>${bottomBorder}</div><br/>\n`;
return `<div>${topBorder}<br/>${middleLine}<br/>${bottomBorder}</div>`;
// return `<div>${topBorder}<br/>${middleLine}<br/>${bottomBorder}</div><br/>`;
};
marked.setOptions({
@@ -318,29 +320,31 @@ const Index = () => {
// let value = onInputtxt?.target?.value;
let value = onInputtxt?.target?.value;
if (value?.length > 10) {
// +`🅥🟢🆔:hackrobot`
// +`➕🅥=>🟩🆔: hackrobot,可以找我聊天💬 `
// let contactMe=`<br><br/>在🟩【wΞ𝗫𝗜𝗡】➡联系我 【➕🅥】:
// ╭────────────────╮
// │ 🆔 hackrobot
// ╰────────────────╯
// 💬 随时欢迎聊天
// `
// +`🅥🟢🆔:hackrobot`
// +`➕🅥=>🟩🆔: hackrobot,可以找我聊天💬 `
// let contactMe=`<br><br/>在🟩【wΞ𝗫𝗜𝗡】➡联系我 【➕🅥】:
// ╭────────────────╮
// │ 🆔 hackrobot
// ╰────────────────╯
// 💬 随时欢迎聊天
// `
// │ 💬 随时欢迎聊天
// │ 💬 随时欢迎聊天
let contactMe = `<br>╭────────────────╮
│ 🟩【wΞ𝗫𝗜𝗡】➡联系我【🅥】
│ 🆔 hackrobot
╰────────────────╯<br>💬 随时欢迎聊天`;
// let contactMe = `<br>╭────────────────╮
// │ 🟩【wΞ𝗫𝗜𝗡】➡联系我【🅥】
// │
// │ 🆔 hackrobot
// ╰────────────────╯<br>💬 随时欢迎聊天`;
if (value?.length < 10) {
setmarkText(value);
} else {
setmarkText(value + contactMe);
}
}
let contactMe = `\n💬 后台发送关键词: 加群`;
// setmarkText(value);
setmarkText(value + contactMe);
// if (value?.length < 10) {
// setmarkText(value);
// } else {
// setmarkText(value + contactMe);
// }
};
useEffect(() => {}, []);