การส่งเสริมสกุลเงินดิจิทัล: การเปิดบทใหม่ในการตลาด Web3

globalchainpr 2025-10-02 เข้าชม

การส่งเสริมสกุลเงินดิจิทัล: การเปิดบทใหม่ในการตลาด Web3

การส่งเสริมสกุลเงินดิจิทัล: การเปิดบทใหม่ในการตลาด Web3

รายละเอียดปัญหาและแนวโน้มในตลาด Web3

ในสมัยนี้ การเงินดิจิทัลได้ก้าวข้ามช่องทางต่าง ๆ และกำลังเปิดโอกาสใหม่ในตลาด Web3 อย่างไม่จำกัด เรื่องนี้ไม่ได้แค่เป็นแค่แนวโน้มแต่ยังคือปัญหาที่วิกฤตบุคคลและบริษัทต้องทำการปรับตัวอย่างรวดเร็ว

การส่งเสริมสกุลเงินดิจิทัล

การส่งเสริมสกุลเงินดิจิทัล เป็นกระบวนการที่มีความสำคัญอย่างยิ่งในการพัฒนาตลาด Web3 โดยเฉพาะในบริษัทธุรกิจของไทย เรื่องนี้ไม่ได้แค่เป็นการยอมรับกระบวนการชำระช่างโดยไม่ผ่านกระบวนการธุรกิจโລขัณ แต่ยังคือผู้ผลิตผู้ขายผู้บริหารหันมาหันต์ไปที่กระบวนการชำระช่างได้ผ่านช่องทางไซบอ�์

ความสำคัญของการเปิดบทใหม่

การเปิดบทใหม่ในการตลาด Web3 ไม่ได้แค่เป็นการพูดถึงโอกาสใหม่ แต่ยังคือผู้ผลิตผู้ขายผู้บริหารที่พยายามพับถันข้อมูล เพื่อพื้นฐานข้อมูลของพวกเขาจะไม่ถูกกระทบโดยกระบวนการชำระช่างโดยไม่ผ่านกระบวนการธุรกิจโລขัณ

กรณีประ�ับ

จ. เช้า เจ้าหญ้า ได้อ้ายถือถือถือถือถ�ถ�ถ�ถ�์ถ�์ถ�์ ณ. โรงแรม ABC เพื่อจับโอกาสพูดคุยกับณ. พันธุ์ ณ. เจ้าหญ้า เจ้าหญ้าได้อ้า�ถ์ถ้อยถ้อินข้อมูล เพื่อจับโอกาสพูดคุยกับณ. พันธุ์

方法

  1. คว้าข้อมูล - ใช้ชีวีย์ข้อมูลและกระบวนการชำระช่างไปกับกระบวัน
  2. ปรับปรุณ์ - ปรับปรุณ์กระบวันชำরะช่าง
  3. ตีพิมพ์ - ตีพิมพ์กระบวัน
  4. ผู้สำคัญ

  • ณ. เจ้าหญ้า - ผู้ผลิต
  • ณ. พันธุ์ - ผู้ขาย
  • ABC Hotel - ผู้บริหาร
  • ผล

  • ณ. เจ้าหญ้า - ได้อ้าیถือ
  • ABC Hotel - ได้อ้าیถือ
  • ณ. พันธุ์ - ได้อ้าیถือ
  • สummmary

    การส่งเสริมสกุลเงินดิจิทัλ: การเป็‍‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‌‬ <#<#<#<#<#<#<#<#<#<#<#<#<#<#<#<#<#<# การส่งเสริมสกุลเงินดิจிட: การเป็نbnbnbnbnbnbnbnbnbnbttbttbttbttbttbtttbtbtbtbtbtbtbtbtbtbtbbtbbtbbtbbtbbtbbtbbtbbtbbtbbtbbtbbtbbtbbtbbtbbtbbtbbtbbtbbbnttbnttbnttbnttbnttbnttbnttbnttbnttbnttbnttbnttbnttbnttbnttbnttbnttbnttbnttbnttbnttbntnbnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnrbnrbnrbnrbnrbnrbnrbnrbnrbnrbnrbnrbnrbnr"> <meta name="keywords" content="digital currency promotion, Web3 market, digital currency, Thailand, SEO optimization, content marketing"> <script type="text/javascript" src="/public/static/common/js/ey_global.js?v=v1.7.5"></script> </head> <body></p> <p><p>In this article, we delve into the importance of promoting digital currencies and opening a new chapter in the Web3 market, providing insights and practical advice for businesses in Thailand.</p></p> <p><p>This comprehensive guide is written by a seasoned content creator with over a decade of experience in SEO optimization and content marketing.</p></p> <p><p>The article focuses on the following key points:</p></p> <p><ul> <li>The importance of promoting digital currencies in the context of the evolving Web3 market.</li> <li>The benefits of embracing digital currencies for businesses.</li> <li>The challenges faced by businesses when transitioning to digital currencies.</li> <li.Strategies for successfully promoting digital currencies and entering the Web3 market. </ul><p>This article aims to provide valuable insights and actionable strategies for businesses looking to capitalize on the opportunities presented by the rise of digital currencies and the growth of the Web3 market.</p></p> <p><script type="text/javascript">var root_dir="";var ey_aid=98749;</script> <script language="javascript" type="text/javascript" src="/public/static/common/js/ey_footer.js?v=v1.7.5"></script> </body></html></p> </ul> </div> <div class="flex flex-wrap justify-between items-center border-t pt-6 gap-4"> <a href="/tougao" class="inline-flex items-center px-5 py-2 bg-blue-700 text-white rounded-full hover:bg-blue-800 transition"> <i class="fa fa-paper-plane mr-2"></i> ส่งบทความ </a> <button onclick="copyCurrentUrl()" class="text-blue-600 hover:underline flex items-center"> <i class="fa fa-link mr-1"></i> คัดลอกลิงก์ </button> </div> <div class="border-t pt-6 space-y-2 text-sm text-gray-600"> <div><strong>ก่อนหน้า:</strong> <a href="/xwdt/98748.html" class="text-blue-600 hover:underline">แพลตฟอร์มเผยแพร่ข่าวประชาสัมพั</a></div> <div><strong>ถัดไป:</strong> <a href="/xwdt/98750.html" class="text-blue-600 hover:underline">บริการเขียน Cryptocurrency: เส</a></div> <div><a href="/tyzxun/" class="text-blue-600 hover:underline">← กลับไปที่ Thai Information</a></div> </div> </article> </div> </section> <!-- Related Articles --> <section class="bg-white py-20"> <div class="max-w-7xl mx-auto px-6"> <h2 class="text-2xl font-bold text-blue-900 mb-10 text-center">บทความที่เกี่ยวข้อง</h2> <div class="grid md:grid-cols-2 gap-6"> <div class="flex flex-col sm:flex-row items-start gap-4 bg-gray-50 p-5 rounded-xl shadow hover:shadow-md transition"> <a href="/xwdt/15625.html" class="sm:w-32 w-full"> <img src="/img/6.jpg" alt="แพลตฟอร์มการเริ่มต้นแบบเย็นไม่สามารถแยกออกจากการสนับสนุน SEO ได้" class="w-full h-40 sm:h-24 object-cover rounded-lg"> </a> <div class="flex-1"> <a href="/xwdt/15625.html"> <h3 class="text-base font-semibold text-blue-800 hover:underline">แพลตฟอร์มการเริ่มต้นแบบเย็นไม่สามารถแยกออกจากการสนับสนุน SEO ได้</h3> </a> <p class="text-sm text-gray-600 mt-1 line-clamp-2">แพลตฟอร์มการเริ่มต้นแบบเย็นไม่สามารถแยกออกจากการสนับสนุน SEO ได้ในยุคปัจจุบัน การสร้างแพลตฟอร์มการเริ่มต้นแบบเย็นเป็นสิ่งที่จำเป็นมากสำหรับธุรกิจออนไลน์ </p> <div class="text-xs text-gray-500 mt-2 flex justify-between"> <span>2025-08-01</span> <span>5409 เข้าชม</span> </div> </div> </div> <div class="flex flex-col sm:flex-row items-start gap-4 bg-gray-50 p-5 rounded-xl shadow hover:shadow-md transition"> <a href="/xwdt/22053.html" class="sm:w-32 w-full"> <img src="/img/35.jpg" alt="เคล็ดลับเชิงปฏิบัติสำหรับการส่งเสริมการโฆษณาแบบแสดงผลที่มีประสิทธิภาพมีอะไรบ้าง?" class="w-full h-40 sm:h-24 object-cover rounded-lg"> </a> <div class="flex-1"> <a href="/xwdt/22053.html"> <h3 class="text-base font-semibold text-blue-800 hover:underline">เคล็ดลับเชิงปฏิบัติสำหรับการส่งเสริมการโฆษณาแบบแสดงผลที่มีประสิทธิภาพมีอะไรบ้าง?</h3> </a> <p class="text-sm text-gray-600 mt-1 line-clamp-2">เคล็ดลับเชิงปฏิบัติสำหรับการส่งเสริมการโฆษณาแบบแสดงผลที่มีประสิทธิภาพมีอะไรบ้าง? ในยุคดิจิทัลนี้ การโฆษณาแบบแสดงผล (PPC) กลายเป็นเครื่องมือสำคัญในการเพิ่ม</p> <div class="text-xs text-gray-500 mt-2 flex justify-between"> <span>2025-08-08</span> <span>8831 เข้าชม</span> </div> </div> </div> <div class="flex flex-col sm:flex-row items-start gap-4 bg-gray-50 p-5 rounded-xl shadow hover:shadow-md transition"> <a href="/xwdt/17679.html" class="sm:w-32 w-full"> <img src="/img/3.jpg" alt="ตรรกะการโปรโมตเบื้องหลังโครงการคริปโตยอดนิยม" class="w-full h-40 sm:h-24 object-cover rounded-lg"> </a> <div class="flex-1"> <a href="/xwdt/17679.html"> <h3 class="text-base font-semibold text-blue-800 hover:underline">ตรรกะการโปรโมตเบื้องหลังโครงการคริปโตยอดนิยม</h3> </a> <p class="text-sm text-gray-600 mt-1 line-clamp-2">ตรรกะการโปรโมตเบื้องหลังโครงการคริปโตยอดนิยมในยุคที่คริปโตเคอร์เรนซีกำลังได้รับความนิยมอย่างมาก บริษัทและโครงการคริปโตต่างพยายามหาวิธีการโปรโมตให้ผู้ค</p> <div class="text-xs text-gray-500 mt-2 flex justify-between"> <span>2025-08-04</span> <span>9704 เข้าชม</span> </div> </div> </div> <div class="flex flex-col sm:flex-row items-start gap-4 bg-gray-50 p-5 rounded-xl shadow hover:shadow-md transition"> <a href="/xwdt/18555.html" class="sm:w-32 w-full"> <img src="/img/47.jpg" alt="เปิดเผยตรรกะพื้นฐานของการโฆษณาบนบล็อคเชน" class="w-full h-40 sm:h-24 object-cover rounded-lg"> </a> <div class="flex-1"> <a href="/xwdt/18555.html"> <h3 class="text-base font-semibold text-blue-800 hover:underline">เปิดเผยตรรกะพื้นฐานของการโฆษณาบนบล็อคเชน</h3> </a> <p class="text-sm text-gray-600 mt-1 line-clamp-2">เปิดเผยตรรกะพื้นฐานของการโฆษณาบนบล็อคเชน ปัจจุบันเทคโนโลยีบล็อคเชนกำลังเปลี่ยนแปลงวิธีการโฆษณาทั่วโลก ทำให้เราต้องทำความเข้าใจในตรรกะพื้นฐานของการโฆษณ</p> <div class="text-xs text-gray-500 mt-2 flex justify-between"> <span>2025-08-05</span> <span>7316 เข้าชม</span> </div> </div> </div> <div class="flex flex-col sm:flex-row items-start gap-4 bg-gray-50 p-5 rounded-xl shadow hover:shadow-md transition"> <a href="/xwdt/19266.html" class="sm:w-32 w-full"> <img src="/img/17.jpg" alt="การตลาดแบบบล็อคเชนเหมาะกับช่วงเริ่มต้นแบบเย็นหรือไม่?" class="w-full h-40 sm:h-24 object-cover rounded-lg"> </a> <div class="flex-1"> <a href="/xwdt/19266.html"> <h3 class="text-base font-semibold text-blue-800 hover:underline">การตลาดแบบบล็อคเชนเหมาะกับช่วงเริ่มต้นแบบเย็นหรือไม่?</h3> </a> <p class="text-sm text-gray-600 mt-1 line-clamp-2">การตลาดแบบบล็อคเชนเหมาะกับช่วงเริ่มต้นแบบเย็นหรือไม่? คำถามนี้มักจะทำให้ผู้ประกอบการใหม่ๆ สงสัย เพราะการตลาดแบบบล็อคเชนยังเป็นเรื่องใหม่สำหรับหลายๆ คน แ</p> <div class="text-xs text-gray-500 mt-2 flex justify-between"> <span>2025-08-06</span> <span>4731 เข้าชม</span> </div> </div> </div> <div class="flex flex-col sm:flex-row items-start gap-4 bg-gray-50 p-5 rounded-xl shadow hover:shadow-md transition"> <a href="/xwdt/16956.html" class="sm:w-32 w-full"> <img src="/img/33.jpg" alt="แบรนด์อีเว้นท์สามารถใช้ SEO เพื่อเพิ่มการรับรู้ได้อย่างไร" class="w-full h-40 sm:h-24 object-cover rounded-lg"> </a> <div class="flex-1"> <a href="/xwdt/16956.html"> <h3 class="text-base font-semibold text-blue-800 hover:underline">แบรนด์อีเว้นท์สามารถใช้ SEO เพื่อเพิ่มการรับรู้ได้อย่างไร</h3> </a> <p class="text-sm text-gray-600 mt-1 line-clamp-2">แบรนด์อีเว้นท์สามารถใช้ SEO เพื่อเพิ่มการรับรู้ได้อย่างไรในยุคดิจิทัลนี้ การมีชื่อเสียงและสร้างการรับรู้แบรนด์ในวงกว้างเป็นสิ่งสำคัญสำหรับแบรนด์อีเว้นท์ </p> <div class="text-xs text-gray-500 mt-2 flex justify-between"> <span>2025-08-03</span> <span>193 เข้าชม</span> </div> </div> </div> </div> </div> </section> <script> function copyCurrentUrl() { const url = window.location.href; navigator.clipboard.writeText(url).then(() => { alert("คัดลอกลิงก์แล้ว!"); }); } </script> <!-- Footer --> <footer class="bg-dark text-white pt-16 pb-8"> <div class="container mx-auto px-4"> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 mb-12"> <!-- Company Info --> <div> <a href="#" class="flex items-center space-x-2 mb-6"> <div class="w-10 h-10 rounded-lg bg-white flex items-center justify-center"> <i class="fa fa-cube text-primary text-xl"></i> </div> <span class="text-xl font-bold text-white">GlobalChainPR<span class="text-primary">News</span></span> </a> <p class="text-white/70 mb-6">Your trusted source for the latest news, insights, and developments in Web3 and blockchain technology.</p> <div class="flex space-x-4"> <a href="#" class="w-10 h-10 rounded-full bg-dark-light/20 flex items-center justify-center hover:bg-primary transition-colors"> <i class="fab fa-twitter text-white"></i> </a> <a href="#" class="w-10 h-10 rounded-full bg-dark-light/20 flex items-center justify-center hover:bg-primary transition-colors"> <i class="fab fa-linkedin text-white"></i> </a> <a href="https://t.me/LianPR1" target="_blank" class="w-10 h-10 rounded-full bg-dark-light/20 flex items-center justify-center hover:bg-primary transition-colors"> <i class="fab fa-telegram text-white"></i> </a> </div> </div> <!-- Quick Links --> <div> <h3 class="text-lg font-semibold mb-6">Quick Links</h3> <ul class="space-y-3"> <li><a href="/" class="text-white/70 hover:text-primary transition-colors">Home</a></li> <li><a href="/cpyfw/" class="text-white/70 hover:text-primary transition-colors">Global Media Package</a></li> <li><a href="/web3mt/" class="text-white/70 hover:text-primary transition-colors">web3 media</a></li> <li><a href="/xwdt/" class="text-white/70 hover:text-primary transition-colors">News & Updates</a></li> <li><a href="/lxwm/" class="text-white/70 hover:text-primary transition-colors">Contact us</a></li> </ul> </div> <!-- Resources --> <div> <h3 class="text-lg font-semibold mb-6">Terms of Service</h3> <ul class="space-y-3"> <li><a href="/ptgz/" class="text-white/70 hover:text-primary transition-colors">Platform Rules</a></li> <li><a href="/yhxy/" class="text-white/70 hover:text-primary transition-colors">User Agreement</a></li> <li><a href="/sitemap.xml" class="text-white/70 hover:text-primary transition-colors">Site Map</a></li> </div> <!-- Contact --> <div> <h3 class="text-lg font-semibold mb-6">Contact Us</h3> <ul class="space-y-3"> <a href="https://t.me/LianPR1" target="_blank"><li class="flex items-start space-x-3"> <i class="fab fa-telegram text-primary mt-1"></i> <span class="text-white/70">@LianPR1</span> </li></a> <li class="flex items-center space-x-3"> <i class="fa fa-envelope text-primary"></i> <a href="lemon@lianpr.com" class="text-white/70 hover:text-primary transition-colors">lemon@lianpr.com</a> </li> <li class="flex items-center space-x-3"> <i class="fa fa-phone text-primary"></i> <a href="tel:+1234567890" class="text-white/70 hover:text-primary transition-colors">+86 13415525104</a> </li> </ul> </div> </div> <div class="border-t border-white/10 pt-8"> <div class="flex flex-col md:flex-row justify-between items-center"> <p class="text-white/50 text-sm mb-4 md:mb-0">© 2025 GlobalChainPR Web3 News Express All Rights Reserved</p> <div class="flex space-x-6"> <a href="#" class="text-white/50 text-sm hover:text-primary transition-colors">Privacy Policy</a> <a href="#" class="text-white/50 text-sm hover:text-primary transition-colors">Terms of Service</a> </div> </div> </div> </div> </footer> <!-- Back to Top Button --> <button id="back-to-top" class="fixed bottom-6 right-6 w-12 h-12 rounded-full bg-primary text-white shadow-lg flex items-center justify-center opacity-0 invisible transition-all duration-300 hover:bg-primary/90"> <i class="fa fa-chevron-up"></i> </button> <script src="/template/pc/static/js/aos.js"></script> <script> AOS.init({ once: true, // 只触发一次 duration: 800, // 动画时长(毫秒) offset: 100 // 提前触发距离(像素) }); </script> <script> const counters = document.querySelectorAll('.counter'); const speed = 200; // 越小越快 const runCounters = () => { counters.forEach(counter => { const updateCount = () => { const target = +counter.getAttribute('data-target'); const count = +counter.innerText; const increment = Math.ceil(target / speed); if (count < target) { counter.innerText = count + increment; setTimeout(updateCount, 20); } else { counter.innerText = target; } }; updateCount(); }); }; // 启动条件:滚动进视口时触发 const section = document.querySelector('section'); let animated = false; const observer = new IntersectionObserver(entries => { entries.forEach(entry => { if (entry.isIntersecting && !animated) { runCounters(); animated = true; } }); }, { threshold: 0.3 }); observer.observe(section); </script> <style> /* CSS 样式同原版,无需修改 */ .kf-chat-container { width: 90%; max-width: 400px; background-color: #fff; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); overflow: hidden; position: fixed; bottom: 20px; right: 5px; display: block; z-index: 99999; } .kf-chat-header { background-color: #2196f3; color: #fff; padding: 10px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 14px; } .kf-chat-header .kf-title { margin: 0; } .kf-chat-header .kf-buttons { display: flex; padding: 0 10px; } .kf-chat-header .kf-buttons button { background: none; border: none; color: #fff; font-size: 16px; cursor: pointer; margin-left: 5px; } .kf-chat-header .kf-buttons button:hover { color: #ddd; } .kf-chat-body { height: 300px; padding: 10px; overflow-y: auto; border-bottom: 1px solid #ddd; font-size: 14px; } .kf-chat-input { display: flex; padding: 10px; font-family: Arial, sans-serif; } .kf-chat-input input { flex: 1; padding: 8px; border: 1px solid #ddd; border-radius: 5px; margin-right: 10px; transition: border-color 0.3s ease; } .kf-chat-input input:focus { border-color: #2196f3; outline: none; } .kf-chat-input button { padding: 8px 15px; background-color: #2196f3; color: #fff; border: none; border-radius: 5px; cursor: pointer; } .kf-chat-input button:hover { background-color: #0056b3; } .kf-message { margin: 10px 0; display: flex; align-items: flex-start; } .kf-user { display: flex; justify-content: flex-end; } .kf-user .kf-text { align-items: flex-end; margin-right: 10px; background: #e3f2fd; /* 用户消息浅蓝色背景 */ border-radius: 8px 8px 0 8px; padding: 8px 12px; } .kf-bot .kf-text { background: #f5f7fa; /* 客服消息浅灰色背景 */ border-radius: 8px 8px 8px 0; margin-left: 10px; padding: 8px 12px; } .kf-message img { width: 30px; height: 30px; border-radius: 50%; margin-right: 10px; overflow: revert; } .kf-message .kf-time { font-size: 12px; color: #888; margin-bottom: 5px; } .kf-message .kf-text { display: flex; flex-direction: column; align-items: flex-start; background: #f5f7fa; /* 默认浅灰背景 */ border-radius: 8px; padding: 8px 12px; max-width: 75%; box-sizing: border-box; word-break: break-word; } .kf-user .kf-text { align-items: flex-end; background: #e3f2fd; /* 用户消息浅蓝色背景 */ border-radius: 8px 8px 0 8px; margin-right: 10px; } .kf-bot .kf-text { background: #f5f7fa; /* 客服消息浅灰色背景 */ border-radius: 8px 8px 8px 0; margin-left: 10px; } .kf-chat-toggle { position: fixed; bottom: 100px; right: 20px; width: 50px; height: 50px; background-color: #2196f3; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); display: none; } .kf-chat-toggle img { width: 53px; height: 53px; border-radius: 50%; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); } @media (max-width: 600px) { .kf-chat-container { width: 95%; max-width: 100%; } .kf-chat-header { padding: 10px 5px; } .kf-chat-header .kf-title { font-size: 16px; padding: 0 10px; } .kf-chat-header .kf-buttons button { font-size: 14px; } .kf-chat-body { height: 400px; } .kf-message .kf-time { font-size: 10px; margin-bottom: 4px; } } </style> <div class="kf-chat-toggle" onclick="toggleChat()"> <img src="https://kf.lianpr.com/img/touxiang.png" alt="客服头像"> </div> <div class="kf-chat-container" id="kf-chat-container" style="display: none;"> <div class="kf-chat-header" onclick="toggleChat()"> <h3 class="kf-title">在线咨询</h3> <div class="kf-buttons"> <button onclick="closeChat(event)">×</button> </div> </div> <div class="kf-chat-body" id="kf-chat-body"></div> <div class="kf-chat-input"> <input type="text" id="kf-user-input" placeholder="输入你的问题..." onkeypress="handleKeyPress(event)"> <button onclick="sendMessage()">发送</button> </div> </div> <script> const rules = { "hello": "你好!有什么我可以帮你的吗?", "人工": "系统已为你记录你的问题,你可以留下你的联系方式方便我们找你沟通,如果你要在线沟通服务,请联系Telegram:<a href='https://t.me/LianPR1' target='_blank' style='color: #005aff;font-size: 16px;' rel='nofollow'>点此进入</a>", "客服": "系统已为你记录你的问题,你可以留下你的联系方式方便我们找你沟通,如果你要在线沟通服务,请联系Telegram:<a href='https://t.me/LianPR1' target='_blank' style='color: #005aff;font-size: 16px;' rel='nofollow'>点此进入</a>", "default": "系统已为你记录你的问题,你可以留下你的联系方式方便我们找你沟通,如果你要在线沟通服务,请联系Telegram:<a href='https://t.me/LianPR1' target='_blank' style='color: #005aff;font-size: 16px;' rel='nofollow'>点此进入</a>" }; async function getAIResponse(input) { try { const res = await fetch('/api-chat.php', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, body: `message=${encodeURIComponent(input)}` }); const data = await res.json(); if (data && data.choices && data.choices.length > 0) { return data.choices[0].message.content; } return null; } catch (e) { console.error('AI接口异常', e); return null; } } function getResponse(input) { const phoneRegex = /^1[3-9]\d{9}$/; const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; if (phoneRegex.test(input) || emailRegex.test(input)) { return "好的,您的信息我们已经记录,稍后会尽快联系您。"; } input = input.toLowerCase(); for (const key in rules) { if (input.includes(key)) { if (key === "人工") { return `<p>${rules[key]}</p><img class="wechat-qr-img" src="https://kf.lianpr.com/img/wx.png" alt="WeChat QR Code" style="width: 200px; height: auto; border-radius: inherit;">`; } return rules[key]; } } return rules["default"]; } async function sendMessage() { const inputEl = document.getElementById('kf-user-input'); const inputValue = inputEl.value.trim(); if (!inputValue) return; const bodyEl = document.getElementById('kf-chat-body'); const userMessage = document.createElement('div'); userMessage.className = 'kf-message kf-user'; userMessage.innerHTML = ` <div class="kf-text"> <div class="kf-time">${getCurrentTime()}</div> <div>${escapeHTML(inputValue)}</div> </div> <img src="https://kf.lianpr.com/img/yonghu.png" alt="用户头像"> `; bodyEl.appendChild(userMessage); inputEl.value = ''; // 立即清空输入框 bodyEl.scrollTop = bodyEl.scrollHeight; // 自动滚动到底部 // 判断是否命中预设问答 let presetReply = getResponse(inputValue); let botReply; if ( presetReply !== rules["default"] && !(inputValue.toLowerCase() === "" || presetReply === "") ) { botReply = presetReply; } else { botReply = await getAIResponse(inputValue) || presetReply; } // 逐字输出机器人回复 const botMessage = document.createElement('div'); botMessage.className = 'kf-message kf-bot'; botMessage.innerHTML = ` <img src="https://kf.lianpr.com/img/touxiang.png" alt="客服头像"> <div class="kf-text"> <div class="kf-time">${getCurrentTime()}</div> <div class="kf-bot-typing"></div> </div> `; bodyEl.appendChild(botMessage); bodyEl.scrollTop = bodyEl.scrollHeight; // 处理HTML标签(如预设问答带有a标签或img标签时直接输出,不逐字) const typingEl = botMessage.querySelector('.kf-bot-typing'); // 过滤掉 ### 和 ** botReply = botReply.replace(/[#*]/g, ''); if (/<[a-z][\s\S]*>/i.test(botReply)) { typingEl.innerHTML = botReply; } else { typingEl.innerHTML = botReply.replace(/\n/g, '<br>'); } bodyEl.scrollTop = bodyEl.scrollHeight; // ✅ 翻译机器人回复 if (typeof translate !== 'undefined' && typeof translate.execute === 'function') { translate.execute(); } fetch('https://kf.lianpr.com/save_message.php', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, body: `message=${encodeURIComponent(inputValue)}&url=${encodeURIComponent(window.location.href)}&ip=${encodeURIComponent(getClientDeviceType())}&referrer=${encodeURIComponent(document.referrer)}` }).then(res => res.json()) .then(data => { if (data.status === 'success') { console.log('Message saved successfully'); } else { console.error('Failed to save message:', data.message); } }).catch(error => console.error('Error sending message:', error)); } function toggleChat() { const container = document.getElementById('kf-chat-container'); const toggleBtn = document.querySelector('.kf-chat-toggle'); const isHidden = container.style.display === 'none'; container.style.display = isHidden ? 'block' : 'none'; toggleBtn.style.display = isHidden ? 'none' : 'flex'; } function closeChat(event) { event.stopPropagation(); toggleChat(); window.__kfChatAutoOpened = true; } function getCurrentTime() { const now = new Date(); return `${now.getHours().toString().padStart(2, '0')}:${now.getMinutes().toString().padStart(2, '0')}`; } function escapeHTML(str) { return str.replace(/&/g, '&') .replace(/</g, '<') .replace(/>/g, '>') .replace(/"/g, '"') .replace(/'/g, '''); } function getClientDeviceType() { return /Android|webOS|iPhone|iPad|iPod|Windows Phone/i.test(navigator.userAgent) ? "Mobile" : "Desktop"; } function handleKeyPress(event) { if (event.key === 'Enter') { sendMessage(); } } window.onload = function () { const bodyEl = document.getElementById('kf-chat-body'); const welcome = document.createElement('div'); welcome.className = 'kf-message kf-bot'; welcome.innerHTML = ` <img src="https://kf.lianpr.com/img/touxiang.png" alt="客服头像"> <div class="kf-text"> <div class="kf-time">${getCurrentTime()}</div> <div>你好!有什么我可以帮你的吗?</div> </div> `; bodyEl.appendChild(welcome); setTimeout(() => { const second = document.createElement('div'); second.className = 'kf-message kf-bot'; second.innerHTML = ` <img src="https://kf.lianpr.com/img/touxiang.png" alt="客服头像"> <div class="kf-text"> <div class="kf-time">${getCurrentTime()}</div> <div>如果您有任何问题,请添加微信:LianPR77<br>或扫码下面二维码添加。<br> Telegram:<a href="https://t.me/LianPR1" target="_blank" style="color: #005aff;font-size: 20px;">https://t.me/LianPR1</a></div> <img src="https://kf.lianpr.com/img/wx.png" alt="二维码" style="width: 200px; height: auto; border-radius: inherit;"> </div> `; bodyEl.appendChild(second); // ✅ 翻译欢迎提示内容 if (typeof translate !== 'undefined' && typeof translate.execute === 'function') { translate.execute(); } }, 3000); const container = document.getElementById('kf-chat-container'); const toggleBtn = document.querySelector('.kf-chat-toggle'); if (getClientDeviceType() === "Mobile") { container.style.display = 'none'; toggleBtn.style.display = 'flex'; window.__kfChatAutoOpened = false; setTimeout(() => { if (!window.__kfChatAutoOpened) { container.style.display = 'block'; toggleBtn.style.display = 'none'; window.__kfChatAutoOpened = true; } }, 10000); } else { container.style.display = 'block'; toggleBtn.style.display = 'none'; window.__kfChatAutoOpened = true; } }; </script> <!-- 多语言 --> <script> // Mobile menu toggle const mobileMenuButton = document.getElementById('mobile-menu-button'); const mobileMenu = document.getElementById('mobile-menu'); mobileMenuButton.addEventListener('click', () => { mobileMenu.classList.toggle('hidden'); }); // Sticky header const header = document.getElementById('main-header'); let lastScrollY = window.scrollY; window.addEventListener('scroll', () => { if (window.scrollY > 50) { header.classList.add('shadow-md'); header.classList.add('bg-white/95'); header.classList.add('backdrop-blur-sm'); } else { header.classList.remove('shadow-md'); header.classList.remove('bg-white/95'); header.classList.remove('backdrop-blur-sm'); } lastScrollY = window.scrollY; }); // Back to top button const backToTopButton = document.getElementById('back-to-top'); window.addEventListener('scroll', () => { if (window.scrollY > 300) { backToTopButton.classList.remove('opacity-0'); backToTopButton.classList.remove('invisible'); } else { backToTopButton.classList.add('opacity-0'); backToTopButton.classList.add('invisible'); } }); backToTopButton.addEventListener('click', () => { window.scrollTo({ top: 0, behavior: 'smooth' }); }); // Smooth scroll for anchor links document.querySelectorAll('a[href^="#"]').forEach(anchor => { anchor.addEventListener('click', function (e) { e.preventDefault(); document.querySelector(this.getAttribute('href')).scrollIntoView({ behavior: 'smooth' }); }); }); </script> <script src="/template/pc/static/js/translate.js"></script> <script> translate.selectLanguageTag.show = false; // 不显示默认select translate.service.use('client.edge'); // 设置翻译通道 translate.language.setDefaultTo('english'); // 设置默认语言 translate.language.translateLocal = true; // 启用本地翻译(不远程请求) translate.execute(); // 执行翻译 </script> <script type="text/javascript">var root_dir="";var ey_aid=98749;</script> <script language="javascript" type="text/javascript" src="/public/static/common/js/ey_footer.js?v=v1.7.5"></script> </body> </html>