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