1308.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725
  1. <!DOCTYPE html>
  2. <html lang="en" data-default-color-scheme=auto>
  3. <head><!-- hexo injector head_begin start -->
  4. <script async src="https://analytics.umami.is/script.js" data-website-id="e59ec28a-c9a7-4104-9e62-a9f7eb3fac0b"></script>
  5. <!-- hexo injector head_begin end -->
  6. <meta charset="UTF-8">
  7. <link rel="apple-touch-icon" sizes="76x76" href="https://img.limour.top/2023/08/29/64ee07361815a.webp">
  8. <link rel="icon" href="https://img.limour.top/2023/08/29/64ee07361815a.webp">
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  10. <meta http-equiv="x-ua-compatible" content="ie=edge">
  11. <meta name="theme-color" content="#2f4154">
  12. <meta name="author" content="Limour">
  13. <meta name="keywords" content="">
  14. <meta name="description" content="代码来源https:&#x2F;&#x2F;github.com&#x2F;7eu7d7&#x2F;genshin_auto_fish 第一步 安装 Anaconda 清华大学开源软件镜像站 Getting started with Anaconda 下载安装包,安装到独立的磁盘,取消掉两个Advanced Options 第二步 安装cuda和cuDNN win10安装CUDA和cuDNN的正确姿势 下载或更新最新的 GEFORC">
  15. <meta property="og:type" content="article">
  16. <meta property="og:title" content="原神 AI全自动钓鱼 使用方法">
  17. <meta property="og:url" content="https://b.limour.top/1308.html">
  18. <meta property="og:site_name" content="Limour&#39;s Blog">
  19. <meta property="og:description" content="代码来源https:&#x2F;&#x2F;github.com&#x2F;7eu7d7&#x2F;genshin_auto_fish 第一步 安装 Anaconda 清华大学开源软件镜像站 Getting started with Anaconda 下载安装包,安装到独立的磁盘,取消掉两个Advanced Options 第二步 安装cuda和cuDNN win10安装CUDA和cuDNN的正确姿势 下载或更新最新的 GEFORC">
  20. <meta property="og:locale" content="en_US">
  21. <meta property="og:image" content="https://img-cdn.limour.top/blog_wp/2021/12/image.png">
  22. <meta property="og:image" content="https://img-cdn.limour.top/blog_wp/2021/12/image-1.png">
  23. <meta property="article:published_time" content="2021-12-15T13:03:45.000Z">
  24. <meta property="article:modified_time" content="2023-09-01T13:32:00.665Z">
  25. <meta property="article:author" content="Limour">
  26. <meta name="twitter:card" content="summary_large_image">
  27. <meta name="twitter:image" content="https://img-cdn.limour.top/blog_wp/2021/12/image.png">
  28. <title>原神 AI全自动钓鱼 使用方法 - Limour&#39;s Blog</title>
  29. <link rel="stylesheet" href="https://jscdn.limour.top/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css" />
  30. <link rel="stylesheet" href="https://jscdn.limour.top/npm/github-markdown-css@4.0.0/github-markdown.min.css" />
  31. <link rel="stylesheet" href="https://jscdn.limour.top/npm/hint.css@2.7.0/hint.min.css" />
  32. <link rel="stylesheet" href="https://lib.baomitu.com/fancybox/3.5.7/jquery.fancybox.min.css" />
  33. <!-- 主题依赖的图标库,不要自行修改 -->
  34. <!-- Do not modify the link that theme dependent icons -->
  35. <link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_hj8rtnfg7um.css">
  36. <link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_lbnruvf0jn.css">
  37. <link rel="stylesheet" href="/css/main.css" />
  38. <link id="highlight-css" rel="stylesheet" href="/css/highlight.css" />
  39. <link id="highlight-css-dark" rel="stylesheet" href="/css/highlight-dark.css" />
  40. <link rel="stylesheet" href="/theme-inject/custom.css">
  41. <script id="fluid-configs">
  42. var Fluid = window.Fluid || {};
  43. Fluid.ctx = Object.assign({}, Fluid.ctx)
  44. var CONFIG = {"hostname":"b.limour.top","root":"/","version":"1.9.5-a","typing":{"enable":true,"typeSpeed":70,"cursorChar":"_","loop":false,"scope":[]},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"left","visible":"hover","icon":"§"},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"code_language":{"enable":true,"default":"TEXT"},"copy_btn":true,"image_caption":{"enable":true},"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"placement":"right","headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"https://jscdn.limour.top/gh/Limour-dev/Sakurairo_Vision/load_svg/inload.svg","onlypost":false,"offset_factor":2},"web_analytics":{"enable":false,"follow_dnt":true,"baidu":null,"google":{"measurement_id":null},"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname","ignore_local":false}},"search_path":"/local-search.xml","include_content_in_search":true};
  45. if (CONFIG.web_analytics.follow_dnt) {
  46. var dntVal = navigator.doNotTrack || window.doNotTrack || navigator.msDoNotTrack;
  47. Fluid.ctx.dnt = dntVal && (dntVal.startsWith('1') || dntVal.startsWith('yes') || dntVal.startsWith('on'));
  48. }
  49. </script>
  50. <script src="/js/utils.js" ></script>
  51. <script src="/js/color-schema.js" ></script>
  52. <meta name="generator" content="Hexo 6.3.0"></head>
  53. <body>
  54. <header>
  55. <div class="header-inner" style="height: 70vh;">
  56. <nav id="navbar" class="navbar fixed-top navbar-expand-lg navbar-dark scrolling-navbar">
  57. <div class="container">
  58. <a class="navbar-brand" href="/">
  59. <strong>Limour&#39;s Blog</strong>
  60. </a>
  61. <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
  62. data-target="#navbarSupportedContent"
  63. aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
  64. <div class="animated-icon"><span></span><span></span><span></span></div>
  65. </button>
  66. <!-- Collapsible content -->
  67. <div class="collapse navbar-collapse" id="navbarSupportedContent">
  68. <ul class="navbar-nav ml-auto text-center">
  69. <li class="nav-item">
  70. <a class="nav-link" href="/">
  71. <i class="iconfont icon-home-fill"></i>
  72. <span>Home</span>
  73. </a>
  74. </li>
  75. <li class="nav-item">
  76. <a class="nav-link" href="/archives/">
  77. <i class="iconfont icon-archive-fill"></i>
  78. <span>Archives</span>
  79. </a>
  80. </li>
  81. <li class="nav-item" id="search-btn">
  82. <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
  83. <i class="iconfont icon-search"></i>
  84. </a>
  85. </li>
  86. <li class="nav-item" id="color-toggle-btn">
  87. <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">
  88. <i class="iconfont icon-dark" id="color-toggle-icon"></i>
  89. </a>
  90. </li>
  91. </ul>
  92. </div>
  93. </div>
  94. </nav>
  95. <div id="banner" class="banner" parallax=true
  96. style="background: url('https://img.limour.top/2023/08/29/64ee08e108638.webp') no-repeat center center; background-size: cover;">
  97. <div class="full-bg-img">
  98. <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
  99. <div class="banner-text text-center fade-in-up">
  100. <div class="h2">
  101. <span id="subtitle" data-typed-text="原神 AI全自动钓鱼 使用方法"></span>
  102. </div>
  103. <div class="mt-3">
  104. <span class="post-meta">
  105. <i class="iconfont icon-date-fill" aria-hidden="true"></i>
  106. <time datetime="2021-12-15 21:03" pubdate>
  107. December 15, 2021 pm
  108. </time>
  109. </span>
  110. </div>
  111. <div class="mt-1">
  112. <span class="post-meta mr-2">
  113. <i class="iconfont icon-chart"></i>
  114. 2.6k words
  115. </span>
  116. <span class="post-meta mr-2">
  117. <i class="iconfont icon-clock-fill"></i>
  118. 22 mins
  119. </span>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. </header>
  127. <main>
  128. <div class="container-fluid nopadding-x">
  129. <div class="row nomargin-x">
  130. <div class="side-col d-none d-lg-block col-lg-2">
  131. </div>
  132. <div class="col-lg-8 nopadding-x-md">
  133. <div class="container nopadding-x-md" id="board-ctn">
  134. <div id="board">
  135. <article class="post-content mx-auto">
  136. <h1 id="seo-header">原神 AI全自动钓鱼 使用方法</h1>
  137. <div class="markdown-body">
  138. <h2 id="代码来源"><a href="#代码来源" class="headerlink" title="代码来源"></a>代码来源</h2><p><a target="_blank" rel="noopener" href="https://github.com/7eu7d7/genshin_auto_fish">https://github.com/7eu7d7/genshin_auto_fish</a></p>
  139. <h2 id="第一步-安装-Anaconda"><a href="#第一步-安装-Anaconda" class="headerlink" title="第一步 安装 Anaconda"></a>第一步 安装 Anaconda</h2><ul>
  140. <li><a target="_blank" rel="noopener" href="https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/">清华大学开源软件镜像站</a></li>
  141. <li><a target="_blank" rel="noopener" href="https://www.anaconda.com/products/individual#Downloads">Getting started with Anaconda</a></li>
  142. <li>下载安装包,安装到独立的磁盘,取消掉两个Advanced Options</li>
  143. </ul>
  144. <p><a target="_blank" rel="noopener" href="https://img-cdn.limour.top/blog_wp/2021/12/image.png"><img src="https://img-cdn.limour.top/blog_wp/2021/12/image.png" srcset="https://jscdn.limour.top/gh/Limour-dev/Sakurairo_Vision/load_svg/inload.svg" lazyload></a></p>
  145. <h2 id="第二步-安装cuda和cuDNN"><a href="#第二步-安装cuda和cuDNN" class="headerlink" title="第二步 安装cuda和cuDNN"></a>第二步 安装cuda和cuDNN</h2><ul>
  146. <li><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/94220564?utm_source=wechat_session&ivk_sa=1024320u">win10安装CUDA和cuDNN的正确姿势</a></li>
  147. <li>下载或更新最新的 <a target="_blank" rel="noopener" href="https://www.nvidia.cn/geforce/geforce-experience/download/">GEFORCE EXPERIENCE</a></li>
  148. <li>使用 GEFORCE EXPERIENCE 更新最新驱动</li>
  149. <li>桌面右键打开英伟达控制面板,点击帮助-&gt;系统信息-&gt;组件-&gt;NVCUDA.DLL 获取cuda版本</li>
  150. <li><a target="_blank" rel="noopener" href="https://developer.nvidia.com/cuda-downloads?target_os=Windows&target_arch=x86_64&target_version=11&target_type=exe_local">CUDA Toolkit</a></li>
  151. <li><a target="_blank" rel="noopener" href="https://developer.nvidia.com/rdp/cudnn-download">NVIDIA Developer Program</a></li>
  152. <li>按教程安装,覆盖,设置好环境变量</li>
  153. <li>cuda安装时取消除cuda外的其他选项</li>
  154. </ul>
  155. <p><a target="_blank" rel="noopener" href="https://img-cdn.limour.top/blog_wp/2021/12/image-1.png"><img src="https://img-cdn.limour.top/blog_wp/2021/12/image-1.png" srcset="https://jscdn.limour.top/gh/Limour-dev/Sakurairo_Vision/load_svg/inload.svg" lazyload></a></p>
  156. <h2 id="第三步-修改-conda-镜像"><a href="#第三步-修改-conda-镜像" class="headerlink" title="第三步 修改 conda 镜像"></a>第三步 修改 conda 镜像</h2><ul>
  157. <li>conda config –set show_channel_urls yes</li>
  158. <li>conda config –show</li>
  159. <li>conda config –add pkgs_dirs G:\python\conda\pkgs</li>
  160. <li>conda config –add envs_dirs G:\python\conda\envs</li>
  161. <li>conda config –remove pkgs_dirs C:\Users\11248.conda\pkgs</li>
  162. <li>conda config –remove pkgs_dirs C:\Users\11248\AppData\Local\conda\conda\pkgs</li>
  163. <li>conda config –remove envs_dirs C:\Users\11248.conda\envs</li>
  164. <li>conda config –remove envs_dirs C:\Users\11248\AppData\Local\conda\conda\envs</li>
  165. <li><a target="_blank" rel="noopener" href="https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/">Anaconda 镜像使用帮助</a> 添加镜像</li>
  166. <li>conda clean -i</li>
  167. </ul>
  168. <h2 id="第四步-修改-pip-镜像"><a href="#第四步-修改-pip-镜像" class="headerlink" title="第四步 修改 pip 镜像"></a>第四步 修改 pip 镜像</h2><ul>
  169. <li><a target="_blank" rel="noopener" href="https://codeantenna.com/a/tx5U9UvUFu">pip安装使用国内镜像</a></li>
  170. <li>创建 pip&#x2F;pip.ini</li>
  171. <li>(linux下,修改 ~&#x2F;.pip&#x2F;pip.conf)</li>
  172. <li>写入以下内容</li>
  173. </ul>
  174. <figure class="highlight ini"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><code class="hljs ini"><span class="hljs-section">[global]</span> <br><br><span class="hljs-attr">index-url</span> = http://pypi.douban.com/simple<br><br><span class="hljs-attr">trusted-host</span> = pypi.douban.com<br><br><span class="hljs-attr">disable-pip-version-check</span> = <span class="hljs-literal">true</span><br><br>pip <span class="hljs-attr">timeout</span> = <span class="hljs-number">120</span><br></code></pre></td></tr></table></figure>
  175. <figure class="highlight txt"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><code class="hljs txt"># 豆瓣<br>https://pypi.doubanio.com/simple/<br># 阿里云 <br>https://mirrors.aliyun.com/pypi/simple/<br># 清华大学<br>https://pypi.tuna.tsinghua.edu.cn/simple/<br>https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/<br></code></pre></td></tr></table></figure>
  176. <h2 id="第4-5步-老老实实安装-visual-cpp-build-tools"><a href="#第4-5步-老老实实安装-visual-cpp-build-tools" class="headerlink" title="第4.5步 老老实实安装 visual-cpp-build-tools"></a>第4.5步 老老实实安装 visual-cpp-build-tools</h2><ul>
  177. <li><a target="_blank" rel="noopener" href="https://visualstudio.microsoft.com/visual-cpp-build-tools/">https://visualstudio.microsoft.com/visual-cpp-build-tools/</a></li>
  178. <li>点上C++桌面开发的勾,mmp,绕不过</li>
  179. </ul>
  180. <h2 id="第五步-安装-genshin-auto-fish"><a href="#第五步-安装-genshin-auto-fish" class="headerlink" title="第五步 安装 genshin_auto_fish"></a>第五步 安装 <a target="_blank" rel="noopener" href="https://github.com/7eu7d7/genshin_auto_fish">genshin_auto_fish</a></h2><ul>
  181. <li>git clone <a target="_blank" rel="noopener" href="https://github.com/7eu7d7/genshin/_auto/_fish.git">https://github.com/7eu7d7/genshin\_auto\_fish.git</a></li>
  182. <li>conda create -n ysfish python&#x3D;3.6</li>
  183. <li>conda activate ysfish</li>
  184. <li>conda prompt 打开 genshin_auto_fish 目录</li>
  185. <li>cd G:\github\genshin_auto_fish</li>
  186. <li>python -m pip install -U pip –user</li>
  187. <li>下载 <a target="_blank" rel="noopener" href="https://pypi.tuna.tsinghua.edu.cn/packages/a4/22/77b6374592c04c10a1c57ff069e1bcd435af8021b64ff94bd958bfcc6c10/pycocotools_windows-2.0.0.2-cp36-cp36m-win_amd64.whl#sha256=fbafce7a9abbdc6003cf8e29ca28ce970c5f8ec202fd63233459ff9c51f502e8">pycocotools_windows-2.0.0.2-cp36-cp36m-win_amd64.whl</a></li>
  188. <li>pip install .\pycocotools_windows-2.0.0.2-cp36-cp36m-win_amd64.whl</li>
  189. <li>删除 requirements.py 里的 git+<a target="_blank" rel="noopener" href="https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI">https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI</a></li>
  190. <li>python requirements.py –cuda 110 –proxy <a target="_blank" rel="noopener" href="http://127.0.0.1:10808/">http://127.0.0.1:10808</a></li>
  191. <li>python requirements.py –cuda 110</li>
  192. </ul>
  193. <h2 id="第5-5步-修改一些文件"><a href="#第5-5步-修改一些文件" class="headerlink" title="第5.5步 修改一些文件"></a>第5.5步 修改一些文件</h2><ul>
  194. <li>.\yolox\utils\metric.py 36行 max_mem &#x3D; int(total * mem_ratio) - 1000</li>
  195. <li>.\yolox_tools\train.py torch.set_num_threads(2)</li>
  196. <li>yolox_tiny_fish.py self.data_num_workers &#x3D; 0 self.max_epoch &#x3D; 9</li>
  197. <li>python yolox_tools&#x2F;train.py -f yolox&#x2F;exp&#x2F;yolox_tiny_fish.py -d 1 -b 8 –fp16 -c weights&#x2F;yolox_tiny.pth –cache</li>
  198. <li>.\fishing.py 152 env &#x3D; Fishing(delay&#x3D;0.1, max_step&#x3D;10000, show_det&#x3D;False)</li>
  199. <li>.\fisher\environment.py 205 if np.mean(np.abs(self.img[py,px,:]-self.std_color))&gt;15:</li>
  200. <li>.\fisher\environment.py 122 self.std_color&#x3D;np.array([255, 250, 190])</li>
  201. <li>.\fishing.py 150 def start_fishing(predictor, agent, bite_timeout&#x3D;120):</li>
  202. <li>.\fishing.py 174 times&#x3D;-1 175 break 176 if times &#x3D;&#x3D; -1: continue</li>
  203. <li>.\fishing.py 183 time &#x3D; time.time() 189 if done or time.time() - time &gt; 120:</li>
  204. </ul>
  205. <h2 id="第六步-按Readme操作即可"><a href="#第六步-按Readme操作即可" class="headerlink" title="第六步 按Readme操作即可"></a>第六步 按Readme操作即可</h2>
  206. </div>
  207. <hr/>
  208. <div>
  209. <div class="post-metas my-3">
  210. <div class="post-meta mr-3 d-flex align-items-center">
  211. <i class="iconfont icon-category"></i>
  212. <span class="category-chains">
  213. <span class="category-chain">
  214. <a href="/categories/%E6%9C%89%E8%B6%A3%E6%8A%80%E8%83%BD/" class="category-chain-item">有趣技能</a>
  215. </span>
  216. </span>
  217. </div>
  218. </div>
  219. <div class="license-box my-3">
  220. <div class="license-title">
  221. <div>原神 AI全自动钓鱼 使用方法</div>
  222. <div>https://b.limour.top/1308.html</div>
  223. </div>
  224. <div class="license-meta">
  225. <div class="license-meta-item">
  226. <div>Author</div>
  227. <div>Limour</div>
  228. </div>
  229. <div class="license-meta-item license-meta-date">
  230. <div>Posted on</div>
  231. <div>December 15, 2021</div>
  232. </div>
  233. <div class="license-meta-item">
  234. <div>Licensed under</div>
  235. <div>
  236. <a class="print-no-link" target="_blank" href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
  237. <span class="hint--top hint--rounded" aria-label="BY - Attribution">
  238. <i class="iconfont icon-by"></i>
  239. </span>
  240. </a>
  241. <a class="print-no-link" target="_blank" href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
  242. <span class="hint--top hint--rounded" aria-label="NC - Non-commercial">
  243. <i class="iconfont icon-nc"></i>
  244. </span>
  245. </a>
  246. <a class="print-no-link" target="_blank" href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
  247. <span class="hint--top hint--rounded" aria-label="SA - Share-alike">
  248. <i class="iconfont icon-sa"></i>
  249. </span>
  250. </a>
  251. </div>
  252. </div>
  253. </div>
  254. <div class="license-icon iconfont"></div>
  255. </div>
  256. <div class="post-prevnext my-3">
  257. <article class="post-prev col-6">
  258. <a href="/1334.html" title="Seurat (十) 同群细胞在不同脑区的DEGs (二)">
  259. <i class="iconfont icon-arrowleft"></i>
  260. <span class="hidden-mobile">Seurat (十) 同群细胞在不同脑区的DEGs (二)</span>
  261. <span class="visible-mobile">Previous</span>
  262. </a>
  263. </article>
  264. <article class="post-next col-6">
  265. <a href="/1302.html" title="Seurat (十) 同群细胞在不同脑区的DEGs">
  266. <span class="hidden-mobile">Seurat (十) 同群细胞在不同脑区的DEGs</span>
  267. <span class="visible-mobile">Next</span>
  268. <i class="iconfont icon-arrowright"></i>
  269. </a>
  270. </article>
  271. </div>
  272. </div>
  273. <article id="comments" lazyload>
  274. <div id="waline"></div>
  275. <script type="text/javascript">
  276. Fluid.utils.loadComments('#waline', function() {
  277. Fluid.utils.createCssLink('https://cdn.staticfile.org/waline/2.15.5/waline.min.css')
  278. Fluid.utils.createScript('https://cdn.staticfile.org/waline/2.15.5/waline.min.js', function() {
  279. var options = Object.assign(
  280. {"serverURL":"https://comments.limour.top","path":"window.location.pathname","meta":["nick","mail","link"],"requiredMeta":["nick"],"lang":"zh-CN","emoji":["https://jscdn.limour.top/gh/walinejs/emojis/weibo"],"dark":"html[data-user-color-scheme=\"dark\"]","wordLimit":0,"pageSize":10},
  281. {
  282. el: '#waline',
  283. path: window.location.pathname
  284. }
  285. )
  286. Waline.init(options);
  287. Fluid.utils.waitElementVisible('#waline .vcontent', () => {
  288. var imgSelector = '#waline .vcontent img:not(.vemoji)';
  289. Fluid.plugins.imageCaption(imgSelector);
  290. Fluid.plugins.fancyBox(imgSelector);
  291. })
  292. });
  293. });
  294. </script>
  295. <noscript>Please enable JavaScript to view the comments</noscript>
  296. </article>
  297. </article>
  298. </div>
  299. </div>
  300. </div>
  301. <div class="side-col d-none d-lg-block col-lg-2">
  302. <aside class="sidebar" style="margin-left: -1rem">
  303. <div id="toc">
  304. <p class="toc-header">
  305. <i class="iconfont icon-list"></i>
  306. <span>Table of Contents</span>
  307. </p>
  308. <div class="toc-body" id="toc-body"></div>
  309. </div>
  310. </aside>
  311. </div>
  312. </div>
  313. </div>
  314. <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
  315. <i class="iconfont icon-arrowup" aria-hidden="true"></i>
  316. </a>
  317. <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
  318. aria-hidden="true">
  319. <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
  320. <div class="modal-content">
  321. <div class="modal-header text-center">
  322. <h4 class="modal-title w-100 font-weight-bold">Search</h4>
  323. <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
  324. <span aria-hidden="true">&times;</span>
  325. </button>
  326. </div>
  327. <div class="modal-body mx-3">
  328. <div class="md-form mb-5">
  329. <input type="text" id="local-search-input" class="form-control validate">
  330. <label data-error="x" data-success="v" for="local-search-input">Keyword</label>
  331. </div>
  332. <div class="list-group" id="local-search-result"></div>
  333. </div>
  334. </div>
  335. </div>
  336. </div>
  337. </main>
  338. <footer>
  339. <div class="footer-inner">
  340. <div class="footer-content">
  341. <a target="_blank" rel="nofollow noopener" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=43130202000203"><img src="https://img.limour.top/2023/08/27/64eadeb81d6a0.webp" srcset="https://jscdn.limour.top/gh/Limour-dev/Sakurairo_Vision/load_svg/inload.svg" lazyload>湘公网安备 43130202000203号 </a> <a target="_blank" rel="nofollow noopener" href="https://beian.miit.gov.cn/">湘ICP备20008299号 </a> <a target="_blank" rel="nofollow noopener" href="https://icp.gov.moe/?keyword=20210128">萌ICP备20210128号</a> <br> <a href="https://www.foreverblog.cn/" target="_blank"> <img src="https://img.foreverblog.cn/logo_en_default.png" srcset="https://jscdn.limour.top/gh/Limour-dev/Sakurairo_Vision/load_svg/inload.svg" lazyload alt="" style="width:auto;height:24px"> </a> <br> <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/limour-blog/archives-b" target="_blank" rel="nofollow noopener"><span>SRC</span></a>
  342. </div>
  343. </div>
  344. </footer>
  345. <!-- Scripts -->
  346. <script src="https://jscdn.limour.top/npm/nprogress@0.2.0/nprogress.min.js" ></script>
  347. <link rel="stylesheet" href="https://jscdn.limour.top/npm/nprogress@0.2.0/nprogress.min.css" />
  348. <script>
  349. NProgress.configure({"showSpinner":false,"trickleSpeed":100})
  350. NProgress.start()
  351. window.addEventListener('load', function() {
  352. NProgress.done();
  353. })
  354. </script>
  355. <script src="https://jscdn.limour.top/npm/jquery@3.6.4/dist/jquery.min.js" ></script>
  356. <script src="https://jscdn.limour.top/npm/bootstrap@4.6.1/dist/js/bootstrap.min.js" ></script>
  357. <script src="/js/events.js" ></script>
  358. <script src="/js/plugins.js" ></script>
  359. <script src="https://lib.baomitu.com/typed.js/2.0.12/typed.min.js" ></script>
  360. <script>
  361. (function (window, document) {
  362. var typing = Fluid.plugins.typing;
  363. var subtitle = document.getElementById('subtitle');
  364. if (!subtitle || !typing) {
  365. return;
  366. }
  367. var text = subtitle.getAttribute('data-typed-text');
  368. typing(text);
  369. })(window, document);
  370. </script>
  371. <script src="/js/img-lazyload.js" ></script>
  372. <script>
  373. Fluid.utils.createScript('https://jscdn.limour.top/npm/tocbot@4.20.1/dist/tocbot.min.js', function() {
  374. var toc = jQuery('#toc');
  375. if (toc.length === 0 || !window.tocbot) { return; }
  376. var boardCtn = jQuery('#board-ctn');
  377. var boardTop = boardCtn.offset().top;
  378. window.tocbot.init(Object.assign({
  379. tocSelector : '#toc-body',
  380. contentSelector : '.markdown-body',
  381. linkClass : 'tocbot-link',
  382. activeLinkClass : 'tocbot-active-link',
  383. listClass : 'tocbot-list',
  384. isCollapsedClass: 'tocbot-is-collapsed',
  385. collapsibleClass: 'tocbot-is-collapsible',
  386. scrollSmooth : true,
  387. includeTitleTags: true,
  388. headingsOffset : -boardTop,
  389. }, CONFIG.toc));
  390. if (toc.find('.toc-list-item').length > 0) {
  391. toc.css('visibility', 'visible');
  392. }
  393. Fluid.events.registerRefreshCallback(function() {
  394. if ('tocbot' in window) {
  395. tocbot.refresh();
  396. var toc = jQuery('#toc');
  397. if (toc.length === 0 || !tocbot) {
  398. return;
  399. }
  400. if (toc.find('.toc-list-item').length > 0) {
  401. toc.css('visibility', 'visible');
  402. }
  403. }
  404. });
  405. });
  406. </script>
  407. <script src=https://lib.baomitu.com/clipboard.js/2.0.11/clipboard.min.js></script>
  408. <script>Fluid.plugins.codeWidget();</script>
  409. <script>
  410. Fluid.utils.createScript('https://jscdn.limour.top/npm/anchor-js@4.3.1/anchor.min.js', function() {
  411. window.anchors.options = {
  412. placement: CONFIG.anchorjs.placement,
  413. visible : CONFIG.anchorjs.visible
  414. };
  415. if (CONFIG.anchorjs.icon) {
  416. window.anchors.options.icon = CONFIG.anchorjs.icon;
  417. }
  418. var el = (CONFIG.anchorjs.element || 'h1,h2,h3,h4,h5,h6').split(',');
  419. var res = [];
  420. for (var item of el) {
  421. res.push('.markdown-body > ' + item.trim());
  422. }
  423. if (CONFIG.anchorjs.placement === 'left') {
  424. window.anchors.options.class = 'anchorjs-link-left';
  425. }
  426. window.anchors.add(res.join(', '));
  427. Fluid.events.registerRefreshCallback(function() {
  428. if ('anchors' in window) {
  429. anchors.removeAll();
  430. var el = (CONFIG.anchorjs.element || 'h1,h2,h3,h4,h5,h6').split(',');
  431. var res = [];
  432. for (var item of el) {
  433. res.push('.markdown-body > ' + item.trim());
  434. }
  435. if (CONFIG.anchorjs.placement === 'left') {
  436. anchors.options.class = 'anchorjs-link-left';
  437. }
  438. anchors.add(res.join(', '));
  439. }
  440. });
  441. });
  442. </script>
  443. <script>
  444. Fluid.utils.createScript('https://lib.baomitu.com/fancybox/3.5.7/jquery.fancybox.min.js', function() {
  445. Fluid.plugins.fancyBox();
  446. });
  447. </script>
  448. <script>Fluid.plugins.imageCaption();</script>
  449. <script src="/js/local-search.js" ></script>
  450. <!-- 主题的启动项,将它保持在最底部 -->
  451. <!-- the boot of the theme, keep it at the bottom -->
  452. <script src="/js/boot.js" ></script>
  453. <noscript>
  454. <div class="noscript-warning">Blog works best with JavaScript enabled</div>
  455. </noscript>
  456. <!-- hexo injector body_end start -->
  457. <script defer src="/theme-inject/timeliness.js"></script>
  458. <!-- hexo injector body_end end --></body>
  459. </html>