SharwBlog/posts/20230904214934.html

287 lines
33 KiB
HTML
Raw Normal View History

2024-06-02 22:03:12 +08:00
<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0,viewport-fit=cover"><title>御三家启动器外置使用教程PCL2、HMCL、BakaXL | SharwOrangeのBlog小屋</title><meta name="author" content="SharwOrange"><meta name="copyright" content="SharwOrange"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="承接上文,如果你是服主,部署好了外置服务器,你可以将这篇教程发给他(或她);如果你是一位玩家,我想你也能很快上手外置登录">
<meta property="og:type" content="article">
<meta property="og:title" content="御三家启动器外置使用教程PCL2、HMCL、BakaXL">
<meta property="og:url" content="https://blog.hope-now.top:8443/posts/20230904214934">
<meta property="og:site_name" content="SharwOrangeのBlog小屋">
<meta property="og:description" content="承接上文,如果你是服主,部署好了外置服务器,你可以将这篇教程发给他(或她);如果你是一位玩家,我想你也能很快上手外置登录">
<meta property="og:locale" content="zh_CN">
2024-06-03 13:24:46 +08:00
<meta property="og:image" content="https://blog.hope-now.top:8443/img/avatar.png">
2024-06-02 22:03:12 +08:00
<meta property="article:published_time" content="2023-09-04T13:49:34.000Z">
<meta property="article:modified_time" content="2024-06-02T13:47:08.702Z">
<meta property="article:author" content="SharwOrange">
<meta name="twitter:card" content="summary">
2024-06-03 23:41:37 +08:00
<meta name="twitter:image" content="https://blog.hope-now.top:8443/img/avatar.png"><link rel="shortcut icon" href="/img/avatar.png"><link rel="canonical" href="https://blog.hope-now.top:8443/posts/20230904214934"><link rel="preconnect" href="//cdnjs.cloudflare.com"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css?v=4.13.0"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/node-snackbar/0.1.16/snackbar.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancyapps-ui/5.0.33/fancybox/fancybox.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = {
2024-06-02 22:03:12 +08:00
root: '/',
2024-06-04 23:22:13 +08:00
algolia: {"appId":"1HAQBDQMGS","apiKey":"56a1e4d9766bc4c1f6911c88099c4d33","indexName":"blog","hits":{"per_page":6},"languages":{"input_placeholder":"搜索文章","hits_empty":"找不到您查询的内容:${query}","hits_stats":"找到 ${hits} 条结果,用时 ${time} 毫秒"}},
2024-06-04 23:17:50 +08:00
localSearch: undefined,
2024-06-03 20:31:29 +08:00
translate: {"defaultEncoding":2,"translateDelay":0,"msgToTraditionalChinese":"繁","msgToSimplifiedChinese":"簡"},
noticeOutdate: {"limitDay":60,"position":"top","messagePrev":"距离上次更新已经","messageNext":"天,文章内容可能已过时"},
2024-06-02 22:03:12 +08:00
highlight: {"plugin":"highlight.js","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
copy: {
success: '复制成功',
error: '复制错误',
noSupport: '浏览器不支持'
},
relativeDate: {
homepage: false,
post: false
},
2024-06-03 20:31:29 +08:00
runtime: '天',
2024-06-02 22:03:12 +08:00
dateSuffix: {
just: '刚刚',
min: '分钟前',
hour: '小时前',
day: '天前',
month: '个月前'
},
2024-06-03 20:31:29 +08:00
copyright: {"limitCount":50,"languages":{"author":"作者: SharwOrange","link":"链接: ","source":"来源: SharwOrangeのBlog小屋","info":"著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。"}},
2024-06-02 22:03:12 +08:00
lightbox: 'fancybox',
2024-06-03 23:41:37 +08:00
Snackbar: {"chs_to_cht":"你已切换为繁体中文","cht_to_chs":"你已切换为简体中文","day_to_night":"你已切换为深色模式","night_to_day":"你已切换为浅色模式","bgLight":"#49b1f5","bgDark":"#1f1f1f","position":"bottom-right"},
2024-06-02 22:03:12 +08:00
infinitegrid: {
2024-06-03 21:07:38 +08:00
js: 'https://cdnjs.cloudflare.com/ajax/libs/egjs-infinitegrid/4.11.1/infinitegrid.min.js',
2024-06-02 22:03:12 +08:00
buttonText: '加载更多'
},
isPhotoFigcaption: false,
2024-06-03 21:22:35 +08:00
islazyload: true,
2024-06-02 22:03:12 +08:00
isAnchor: false,
percent: {
toc: true,
2024-06-03 20:31:29 +08:00
rightside: true,
2024-06-02 22:03:12 +08:00
},
2024-06-05 00:10:01 +08:00
autoDarkmode: true
2024-06-02 22:03:12 +08:00
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
title: '御三家启动器外置使用教程PCL2、HMCL、BakaXL',
isPost: true,
isHome: false,
2024-06-03 20:31:29 +08:00
isHighlightShrink: undefined,
2024-06-02 22:03:12 +08:00
isToc: true,
postUpdate: '2024-06-02 21:47:08'
}</script><script>(win=>{
win.saveToLocal = {
set: (key, value, ttl) => {
if (ttl === 0) return
const now = Date.now()
const expiry = now + ttl * 86400000
const item = {
value,
expiry
}
localStorage.setItem(key, JSON.stringify(item))
},
get: key => {
const itemStr = localStorage.getItem(key)
if (!itemStr) {
return undefined
}
const item = JSON.parse(itemStr)
const now = Date.now()
if (now > item.expiry) {
localStorage.removeItem(key)
return undefined
}
return item.value
}
}
win.getScript = (url, attr = {}) => new Promise((resolve, reject) => {
const script = document.createElement('script')
script.src = url
script.async = true
script.onerror = reject
script.onload = script.onreadystatechange = function() {
const loadState = this.readyState
if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
script.onload = script.onreadystatechange = null
resolve()
}
Object.keys(attr).forEach(key => {
script.setAttribute(key, attr[key])
})
document.head.appendChild(script)
})
win.getCSS = (url, id = false) => new Promise((resolve, reject) => {
const link = document.createElement('link')
link.rel = 'stylesheet'
link.href = url
if (id) link.id = id
link.onerror = reject
link.onload = link.onreadystatechange = function() {
const loadState = this.readyState
if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
link.onload = link.onreadystatechange = null
resolve()
}
document.head.appendChild(link)
})
win.activateDarkMode = () => {
document.documentElement.setAttribute('data-theme', 'dark')
if (document.querySelector('meta[name="theme-color"]') !== null) {
document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
}
}
win.activateLightMode = () => {
document.documentElement.setAttribute('data-theme', 'light')
if (document.querySelector('meta[name="theme-color"]') !== null) {
document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
}
}
const t = saveToLocal.get('theme')
2024-06-05 00:10:01 +08:00
const isDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches
const isLightMode = window.matchMedia('(prefers-color-scheme: light)').matches
const isNotSpecified = window.matchMedia('(prefers-color-scheme: no-preference)').matches
const hasNoSupport = !isDarkMode && !isLightMode && !isNotSpecified
if (t === undefined) {
if (isLightMode) activateLightMode()
else if (isDarkMode) activateDarkMode()
else if (isNotSpecified || hasNoSupport) {
const now = new Date()
const hour = now.getHours()
const isNight = hour <= 6 || hour >= 18
isNight ? activateDarkMode() : activateLightMode()
}
window.matchMedia('(prefers-color-scheme: dark)').addListener(e => {
if (saveToLocal.get('theme') === undefined) {
e.matches ? activateDarkMode() : activateLightMode()
}
})
} else if (t === 'light') activateLightMode()
else activateDarkMode()
2024-06-02 22:03:12 +08:00
const detectApple = () => {
if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
document.documentElement.classList.add('apple')
}
}
detectApple()
2024-06-05 11:47:01 +08:00
})(window)</script><link rel="stylesheet" href="https://cdn.staticfile.org/lxgw-wenkai-screen-webfont/1.7.0/style.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="//at.alicdn.com/t/c/font_4574301_6ji9zz4qvww.css"><link rel="stylesheet" href="/css/custom.css" media="defer" onload="this.media='all'"><meta name="generator" content="Hexo 6.3.0"></head><body><div id="loading-box"><div class="loading-left-bg"></div><div class="loading-right-bg"></div><div class="spinner-box"><div class="configure-border-1"><div class="configure-core"></div></div><div class="configure-border-2"><div class="configure-core"></div></div><div class="loading-word">加载中...</div></div></div><script>(()=>{
2024-06-03 23:41:37 +08:00
const $loadingBox = document.getElementById('loading-box')
const $body = document.body
const preloader = {
endLoading: () => {
$body.style.overflow = ''
$loadingBox.classList.add('loaded')
},
initLoading: () => {
$body.style.overflow = 'hidden'
$loadingBox.classList.remove('loaded')
}
}
preloader.initLoading()
window.addEventListener('load',() => { preloader.endLoading() })
if (false) {
document.addEventListener('pjax:send', () => { preloader.initLoading() })
document.addEventListener('pjax:complete', () => { preloader.endLoading() })
}
2024-06-05 00:10:55 +08:00
})()</script><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src= "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-lazy-src="/img/avatar.png" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">3</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">0</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">0</div></a></div><hr class="custom-hr"/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 主页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友联</span></a></div><div class="menus_item"><a class="site-page" href="/artitalk/"><i class="fa-fw fa-fw fas fa-comment-dots"></i><span> 说说</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fa fa-heartbeat"></i><span> 网站</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" target="_blank" rel="noopener" href="https://server1.hope-now.top:8443"><span> Hope Now Network Site Map</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://git.blog.hope-now.top"><span> Gitub 镜像站</span></a></li><li><a class="site-page child" href="https://blog.hope-now.top:8443"><span> 大陆镜像站</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="not-top-img" id="page-header"><nav id="nav"><span id="blog-info"><a href="/" title="SharwOrangeのBlog小屋"><img class="site-icon" src= "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-lazy-src="/img/avatar.png"/><span class="site-name">SharwOrangeのBlog小屋</span></a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search" href="javascript:void(0);"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 主页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友联</span></a></div><div class="menus_item"><a class="site-page" href="/artitalk/"><i class="fa-fw fa-fw fas fa-comment-dots"></i><span> 说说</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fa fa-heartbeat"></i><span> 网站</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" target="_blank" rel="noopener" href="https://server1.hope-now.top:8443"><span> Hope Now Network Site Map</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://git.blog.hope-now.top"><span> Gitub 镜像站</span></a></li><li><a class="site-page child" href="https://blog.hope-now.top:8443"><span><>
2024-06-02 22:03:12 +08:00
<hr>
<h3 id="网页部分"><a href="#网页部分" class="headerlink" title="网页部分"></a>网页部分</h3><p>这个部分其实更适合叫做 <strong>皮肤站部分</strong>,因为大多数的外置其实都是使用皮肤站配合 <strong>Yggdrasil API</strong> 插件实现外置的功能<br>其实都大差不多这里用Blessing Skin举例如果你在首页往下滑能看到Blessing Skin字样的基本都是用Blessing Skin部署的皮肤站或者说外置系统了</p>
<h4 id="账户注册"><a href="#账户注册" class="headerlink" title="账户注册"></a>账户注册</h4><p>账户注册这个应该都清楚。只需要去注册一个账户并邮箱验证即可(该项视情况而定,个别皮肤站并没有邮箱验证的要求)<br>因为本文主要为本人所开的服务器做教程,所以会用自己搭建的外置来验证,下文也均使用自己搭建的外置来作教程举例<br>即使不是本服务器的玩家,也能使用该教程(大同小异)</p>
<p>打开你的浏览器,输入<a target="_blank" rel="noopener" href="https://link.hope-now.top:20008/auth/register">https://link.hope-now.top:20008/auth/register</a> (同上,个别服务器可能有差别,注意分别)<br><strong>由于需要适配基岩版,所以该验证系统有单角色限制,所以开小号无法使用角色功能,请另开账号</strong><br>邮箱,密码,用户名(<strong>在拥有单角色限制的情况下</strong> 这里的用户名即是你的游戏名)</p>
<p>注册成功后需要注意邮箱由于国内邮箱普遍会屏蔽Office 365的企业邮箱所以请务必注意垃圾箱找到带有认证链接的邮件打开里面的链接再次输入你账户的邮箱<strong>为注册外置的邮箱</strong></p>
<h3 id="启动器配置"><a href="#启动器配置" class="headerlink" title="启动器配置"></a>启动器配置</h3><blockquote>
<p>你是否还沉浸在愉悦的账户注册过程中?很遗憾,一切皆已完成! :)</p>
</blockquote>
<p>那么,接下来就是属于启动器的操作了<br>你可以在左上角找到你需要的启动器本文只讲述PCL2、HMCL与BakaXL</p>
<h4 id="通用启动器配置教程"><a href="#通用启动器配置教程" class="headerlink" title="通用启动器配置教程"></a>通用启动器配置教程</h4><p>如果你是Microsoft Edge或者Google Chrome浏览器用户火狐未测试你可以直接在网页上将 <strong>“将此按钮拖动至启动器”</strong> 以完成对启动器的设置</p>
<h4 id="Plain-Craft-Launcher-2PCL2"><a href="#Plain-Craft-Launcher-2PCL2" class="headerlink" title="Plain Craft Launcher 2PCL2"></a>Plain Craft Launcher 2PCL2</h4><p>首先请确保你已经下载有Minecraft<br>关于下载游戏这件事情,不再赘述</p>
<ol>
<li>下载完毕后,在启动游戏的下方找到 <strong>“版本设置”</strong> </li>
<li>随后在左侧找到 <strong>“设置”</strong> </li>
<li>往下滑,找到 <strong>“服务器”</strong> 选项卡(不是选项是选项卡)</li>
<li>在该选项卡中,将 <strong>“登录方式”</strong><strong>“正版或离线登录”</strong> 改为<strong>“第三方登录Authlib Injector 或 Littleskin”</strong> </li>
<li><strong>“认证服务器(必填)”</strong> 这一栏填入 <strong><a target="_blank" rel="noopener" href="https://link.hope-now.top:20008/api/yggdrasil">https://link.hope-now.top:20008/api/yggdrasil</a></strong> </li>
<li>使用最右上角的返回,返回主页后输入自己的邮箱与密码,启动游戏</li>
</ol>
<h4 id="Hello-Minecraft-LauncherHMCL"><a href="#Hello-Minecraft-LauncherHMCL" class="headerlink" title="Hello Minecraft! LauncherHMCL"></a>Hello Minecraft! LauncherHMCL</h4><p>对于该启动器,配置可以说是十分的简单</p>
<ol>
<li>点击右上角的添加账户(若原先有账户,将会显示上一次启动游戏所使用的账户)</li>
<li>点击右下角的添加认证服务器</li>
2024-06-03 20:31:29 +08:00
<li>输入 <strong><a target="_blank" rel="noopener" href="https://link.hope-now.top:20008/api/yggdrasil">https://link.hope-now.top:20008/api/yggdrasil</a></strong><strong><a target="_blank" rel="noopener" href="https://link.hope-now.top:20008">https://link.hope-now.top:20008</a></strong> HMCL将会自动补全如果你记不住可以使用后者两者并无差异</li>
2024-06-02 22:03:12 +08:00
<li>确认服务器认证地址为 <strong><a target="_blank" rel="noopener" href="https://link.hope-now.top:20008/api/yggdrasil">https://link.hope-now.top:20008/api/yggdrasil</a></strong> ;名称为 <strong>Hope Now 验证系统</strong>。并点击确定</li>
<li>在左侧找到刚才添加的认证服务器并点击(一般会显示为 <strong>Hope Now 验证系统</strong> </li>
<li>输入邮箱与密码 <strong>!注意:该项的用户名对应的是邮箱,并不是角色名</strong></li>
<li>使用最右上角的返回,返回主页后选择需要启动的游戏,点击启动游戏即可</li>
</ol>
2024-06-03 20:31:29 +08:00
<h4 id="BakaXL"><a href="#BakaXL" class="headerlink" title="BakaXL"></a>BakaXL</h4><p>该启动器的配置较为繁琐,如果可以,请优先考虑上文提到的 <strong><a href="#通用启动器配置教程">“通用启动器配置”</a></strong> </p>
2024-06-02 22:03:12 +08:00
<p>若无法使用通用启动器配置,可以尝试如下操作</p>
<ol>
<li><strong>“主页”</strong> 找到 <strong>“本体设置”</strong> </li>
<li>随后找到 <strong>“账户与档案”</strong> </li>
<li>点击 <strong>“添加一个档案”</strong></li>
<li><strong>“账户类型”</strong> 中的 <strong>“游戏启动模式”</strong> 改为 <strong>“外置账户(authlib-injector)”</strong> </li>
2024-06-03 20:31:29 +08:00
<li><strong>“账户类型”</strong> 中的 <strong>“验证服务器地址API Root</strong> 填入 <strong><a target="_blank" rel="noopener" href="https://link.hope-now.top:20008/api/yggdrasil">https://link.hope-now.top:20008/api/yggdrasil</a></strong><strong><a target="_blank" rel="noopener" href="https://link.hope-now.top:20008">https://link.hope-now.top:20008</a></strong> BakaXL将会自动补全如果你记不住可以使用后者两者并无差异</li>
2024-06-02 22:03:12 +08:00
<li>输入邮箱与密码</li>
<li>点击 <strong>“进行验证并返回”</strong> </li>
<li>使用最左上角的主页按钮返回主页后,选择需要启动的游戏,点击启动游戏即可</li>
</ol>
<h3 id="结尾"><a href="#结尾" class="headerlink" title="结尾"></a>结尾</h3><p>好好好,九月份居然突破记录写了两篇文章<br>不过不是为了凑数<br><del>因为我懒得一个个口头说咋弄外置了</del><br>其实是因为你服老有人问咋弄,直接用皮肤站的公告感觉没人看,就干脆写这么一篇然后放群公告了</p>
2024-06-05 11:44:32 +08:00
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta"><i class="fas fa-circle-user fa-fw"></i>文章作者: </span><span class="post-copyright-info"><a href="https://blog.hope-now.top:8443">SharwOrange</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta"><i class="fas fa-square-arrow-up-right fa-fw"></i>文章链接: </span><span class="post-copyright-info"><a href="https://blog.hope-now.top:8443/posts/20230904214934">https://blog.hope-now.top:8443/posts/20230904214934</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta"><i class="fas fa-circle-exclamation fa-fw"></i>版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外,均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="https://blog.hope-now.top:8443" target="_blank">SharwOrangeのBlog小屋</a></span></div></div><div class="tag_share"><div class="post-meta__tag-list"></div><div class="post_share"><div class="social-share" data-image="/img/avatar.png" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/butterfly-extsrc/1.1.3/sharejs/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="https://cdnjs.cloudflare.com/ajax/libs/butterfly-extsrc/1.1.3/sharejs/dist/js/social-share.min.js" defer></script></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-full"><a href="/posts/20230902142755" title="让Geyser用上外置登录使用Authlib-Injector"><div class="cover" style="background: var(--default-bg-color)"></div><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">让Geyser用上外置登录使用Authlib-Injector</div></div></a></div></nav><hr class="custom-hr"/><div id="post-comment"><div class="comment-head"><div class="comment-headline"><i class="fas fa-comments fa-fw"></i><span> 评论</span></div></div><div class="comment-wrap"><div><div id="twikoo-wrap"></div></div></div></div></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src= "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-lazy-src="/img/avatar.png" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">SharwOrange</div><div class="author-info__description"></div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">3</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">0</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">0</div></a></div><a id="card-info-btn" href="/about/"><i class="fas fa-heart"></i><span>关于我</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="https://github.com/SharwOrange" target="_blank" title="Github"><i class="fab fa-github" style="color: #24292e;"></i></a><a class="social-icon" href="mailto:kuliangcha@qq.com" target="_blank" title="Email"><i class="fas fa-envelope" style="color: #4a7dbe;"></i></a><a class="social-icon" href="https://git.hope-now.top:8443" target="_blank" title="Gitea"><i class="iconfont icon-gitea1" style="color: #609926;"></i></a></div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%BD%91%E9%A1%B5%E9%83%A8%E5%88%86"><span class="toc-number">1.</span> <span class="toc-text">网页部分</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E8%B4%A6%E6%88%B7%E6%B3%A8%E5%86%8C"><span class="toc-number">
2024-06-03 23:41:37 +08:00
if (typeof pangu === 'object') pangu.autoSpacingPage()
else {
getScript('https://cdnjs.cloudflare.com/ajax/libs/pangu/4.0.7/pangu.min.js')
.then(() => {
pangu.autoSpacingPage()
})
}
}
function panguInit () {
if (false){
GLOBAL_CONFIG_SITE.isPost && panguFn()
} else {
panguFn()
}
}
document.addEventListener('DOMContentLoaded', panguInit)</script><div class="js-pjax"><script>(() => {
2024-06-03 20:31:29 +08:00
const getCount = () => {
const countELement = document.getElementById('twikoo-count')
if(!countELement) return
twikoo.getCommentsCount({
envId: 'https://twikoo.hope-now.top:8443/',
region: '',
urls: [window.location.pathname],
includeReply: false
}).then(res => {
countELement.textContent = res[0].count
}).catch(err => {
console.error(err)
})
}
const init = () => {
twikoo.init(Object.assign({
el: '#twikoo-wrap',
envId: 'https://twikoo.hope-now.top:8443/',
region: '',
onCommentLoaded: () => {
btf.loadLightbox(document.querySelectorAll('#twikoo .tk-content img:not(.tk-owo-emotion)'))
}
}, null))
GLOBAL_CONFIG_SITE.isPost && getCount()
}
const loadTwikoo = () => {
if (typeof twikoo === 'object') setTimeout(init,0)
2024-06-03 22:55:12 +08:00
else getScript('https://cdn.staticfile.net/twikoo/1.6.36/twikoo.all.min.js').then(init)
2024-06-03 20:31:29 +08:00
}
2024-06-05 00:10:55 +08:00
if ('Twikoo' === 'Twikoo' || !false) {
if (false) btf.loadComment(document.getElementById('twikoo-wrap'), loadTwikoo)
2024-06-03 20:31:29 +08:00
else loadTwikoo()
} else {
window.loadOtherComment = loadTwikoo
}
2024-06-04 23:22:13 +08:00
})()</script></div><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><div id="algolia-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">搜索</span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="search-wrap"><div id="algolia-search-input"></div><hr/><div id="algolia-search-results"><div id="algolia-hits"></div><div id="algolia-pagination"></div><div id="algolia-info"><div class="algolia-stats"></div><div class="algolia-poweredBy"></div></div></div></div></div><div id="search-mask"></div><script src="https://cdnjs.cloudflare.com/ajax/libs/algoliasearch/4.22.1/algoliasearch-lite.umd.min.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/instantsearch.js/4.65.0/instantsearch.production.min.js"></script><script src="/js/search/algolia.js?v=4.13.0"></script></div></div></body></html>