<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0"><channel><title>Halo - 强大易用的开源建站工具 | 应用市场 | Afdian Plus | 版本发布</title><link>https://www.halo.run</link><atom:link href="https://www.halo.run/feed/app-store/apps/app-pn0cmop9/releases.xml" rel="self" type="application/rss+xml"/><description>Halo - 强大易用的开源建站工具 | 应用市场 | Afdian Plus | 版本发布</description><generator>Halo v2.26.1</generator><language>zh-cn</language><image><url>https://www.halo.run/upload/logo.png</url><title>Halo - 强大易用的开源建站工具 | 应用市场 | Afdian Plus | 版本发布</title><link>https://www.halo.run</link></image><lastBuildDate>Sat, 19 Sep 2026 16:11:52 GMT</lastBuildDate><follow_challenge><feedId>69597013489248256</feedId><userId>41706424548048896</userId></follow_challenge><item><title><![CDATA[Afdian Plus 1.6.8 发布]]></title><link>https://www.halo.run/store/apps/app-pn0cmop9/releases/app-release-jmuufhfc</link><description><![CDATA[<img src="https://www.halo.run/plugins/feed/assets/telemetry.gif?title=Afdian%20Plus%201.6.8%20%E5%8F%91%E5%B8%83&amp;url=/store/apps/app-pn0cmop9/releases/app-release-jmuufhfc" width="1" height="1" alt="" style="opacity:0;">
<ul>
 <li>修复控制台资源路径异常导致页面持续加载/加载不出的问题。</li>
 <li>优化前端制品目录结构，提升插件安装与更新后的加载稳定性。</li>
</ul>
<hr>
<p><a href="https://www.halo.run/store/apps/app-pn0cmop9/releases/app-release-jmuufhfc">查看版本详情</a></p>]]></description><guid isPermaLink="false">store.halo.run/Release/app-release-jmuufhfc</guid><pubDate>Thu, 6 Aug 2026 09:53:49 GMT</pubDate></item><item><title><![CDATA[Afdian Plus 1.6.6 发布]]></title><link>https://www.halo.run/store/apps/app-pn0cmop9/releases/app-release-vkfnv3c3</link><description><![CDATA[<img src="https://www.halo.run/plugins/feed/assets/telemetry.gif?title=Afdian%20Plus%201.6.6%20%E5%8F%91%E5%B8%83&amp;url=/store/apps/app-pn0cmop9/releases/app-release-vkfnv3c3" width="1" height="1" alt="" style="opacity:0;">
<h1 id="afdian-plus-%E2%80%94-%E7%88%B1%E5%8F%91%E7%94%B5%E5%A2%9E%E5%BC%BA%E6%8F%92%E4%BB%B6" tabindex="-1">Afdian Plus — 爱发电增强插件</h1>
<p>适用于 Halo 2.20+ 的爱发电数据集成插件，提供赞助者、订单、方案、电铺商品、作品集的完整管理与主题展示能力。</p>
<h2 id="%E5%8A%9F%E8%83%BD%E6%A6%82%E8%A7%88" tabindex="-1">功能概览</h2>
<h3 id="%E6%95%B0%E6%8D%AE%E7%AE%A1%E7%90%86" tabindex="-1">数据管理</h3>
<ul>
 <li>一键拉取爱发电全部数据（赞助者、订单、方案、电铺商品、作品集），自动翻页</li>
 <li>数据持久化到 ConfigMap，重启不丢失</li>
 <li>内存缓存机制，可配置缓存时长（默认 30 分钟）</li>
 <li>双域名容灾：自动在 <code>afdian.com</code> 和 <code>ifdian.net</code> 之间切换，主域名不可用时自动回退到备用域名</li>
</ul>
<h3 id="%E5%90%8E%E5%8F%B0%E4%BB%AA%E8%A1%A8%E7%9B%98" tabindex="-1">后台仪表盘</h3>
<ul>
 <li>赞助者总数、订单总数、累计金额、方案/商品数量统计卡片</li>
 <li>近 6 个月订单趋势柱状图</li>
 <li>赞助者金额排行榜</li>
 <li>最近订单时间线</li>
</ul>
<h3 id="%E6%95%B0%E6%8D%AE%E9%9D%A2%E6%9D%BF" tabindex="-1">数据面板</h3>
<ul>
 <li>赞助者列表（头像、昵称、累计金额、最后支付时间、当前方案）</li>
 <li>订单列表（订单号、标题、金额、状态、类型、时间）</li>
 <li>方案卡片（名称、价格、类型标签、描述，点击可弹窗下单）</li>
 <li>电铺商品卡片（图片、名称、价格、在售状态，点击可弹窗下单）</li>
 <li>作品集卡片（封面、标题、状态、篇数）</li>
 <li>Webhook 日志查看（摘要、原始 JSON 展开）</li>
</ul>
<h3 id="webhook-%E5%9B%9E%E8%B0%83" tabindex="-1">Webhook 回调</h3>
<ul>
 <li>接收爱发电支付回调通知</li>
 <li>自动保存 Webhook 日志</li>
 <li>收到回调后自动清除缓存并重新拉取全部数据</li>
 <li>通过 Halo 通知系统向管理员发送新订单站内通知和邮件</li>
</ul>
<h3 id="%E4%B8%BB%E9%A2%98%E9%9B%86%E6%88%90" tabindex="-1">主题集成</h3>
<p>插件注册 <code>afdianPlusFinder</code> 到 Thymeleaf 上下文，主题模板可直接调用：</p>
<table>
 <thead>
  <tr>
   <th>方法</th>
   <th>说明</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td><code>afdianPlusFinder.listAllSponsor()</code></td>
   <td>获取全部赞助者</td>
  </tr>
  <tr>
   <td><code>afdianPlusFinder.listAllOrder()</code></td>
   <td>获取全部订单</td>
  </tr>
  <tr>
   <td><code>afdianPlusFinder.listAllPlan()</code></td>
   <td>获取所有方案</td>
  </tr>
  <tr>
   <td><code>afdianPlusFinder.listAllProduct()</code></td>
   <td>获取电铺全部商品</td>
  </tr>
  <tr>
   <td><code>afdianPlusFinder.listAllAlbum()</code></td>
   <td>获取全部作品集</td>
  </tr>
  <tr>
   <td><code>afdianPlusFinder.parseTime(timestamp)</code></td>
   <td>秒级时间戳转 <code>yyyy-MM-dd</code></td>
  </tr>
 </tbody>
</table>
<h3 id="%E5%BC%B9%E7%AA%97%E6%94%AF%E4%BB%98" tabindex="-1">弹窗支付</h3>
<p>使用 <code>window.open()</code> 弹出 520×700 居中小窗口打开爱发电支付页面（爱发电设置了 <code>X-Frame-Options</code>，无法使用 iframe）。</p>
<h2 id="%E9%85%8D%E7%BD%AE%E8%AF%B4%E6%98%8E" tabindex="-1">配置说明</h2>
<p>在插件后台「API 配置」页面设置：</p>
<table>
 <thead>
  <tr>
   <th>配置项</th>
   <th>说明</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>用户 ID (user_id)</td>
   <td>爱发电创作者管理 → 开发者设置中获取</td>
  </tr>
  <tr>
   <td>API Token</td>
   <td>爱发电创作者管理 → 开发者设置中获取</td>
  </tr>
  <tr>
   <td>缓存时长</td>
   <td>数据缓存分钟数，默认 30，最大 1440</td>
  </tr>
  <tr>
   <td>方案 ID 列表</td>
   <td>需要在主题中展示的方案 ID，可添加多个</td>
  </tr>
 </tbody>
</table>
<h2 id="webhook-%E9%85%8D%E7%BD%AE" tabindex="-1">Webhook 配置</h2>
<p>在爱发电后台设置 Webhook 地址：</p>
<pre><code>https://你的域名/apis/console.api.afdian.aobp.cn/v1alpha1/afdian/-/webhook
</code></pre>
<h2 id="%E4%B8%BB%E9%A2%98%E9%9B%86%E6%88%90-1" tabindex="-1">主题集成</h2>
<p>详见 <a href="https://www.halo.run/./THEME-INTEGRATION.md">THEME-INTEGRATION.md</a>，包含赞助者列表、方案卡片、电铺商品、弹窗支付的完整 Thymeleaf 模板示例。</p>
<p>Serenity 主题（Hue / Ordinary）已内置集成，在主题设置 → 关于页面中开启爱发电即可。</p>
<h2 id="%E4%BA%A4%E6%B5%81" tabindex="-1">交流</h2>
<p>欢迎加入交流群了解更新、反馈问题和交流主题集成。</p>
<p><img src="https://www.halo.run/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fapp-store-static.halo.run%2Fstatic%2F288985A8-52E5-4FB1-838B-388C522EC878.png&amp;size=m" alt="交流群"></p>
<h2 id="%E9%A1%B9%E7%9B%AE%E4%BF%A1%E6%81%AF" tabindex="-1">项目信息</h2>
<ul>
 <li>版本：1.5.0</li>
 <li>作者：Serenity</li>
 <li>主页：<a href="https://www.aobp.cn">https://www.aobp.cn</a></li>
 <li>仓库：<a href="https://github.com/atangccc/Afdian-plus">https://github.com/atangccc/Afdian-plus</a></li>
 <li>许可证：GPL-3.0</li>
</ul>
<h2 id="%E4%BA%8C%E6%AC%A1%E5%BC%80%E5%8F%91%E4%B8%8E%E5%80%9F%E9%89%B4%E8%AF%B4%E6%98%8E" tabindex="-1">二次开发与借鉴说明</h2>
<p>如果你基于本项目进行二次开发、功能移植或实现思路借鉴，请主动告知开发者。这有助于了解项目的实际使用情况、协调兼容性，并减少重复开发。</p>
<ul>
 <li>开发者：Serenity</li>
 <li>项目主页：<a href="https://www.aobp.cn">https://www.aobp.cn</a></li>
 <li>GitHub：<a href="https://github.com/atangccc">https://github.com/atangccc</a></li>
</ul>
<p>上述告知属于社区协作倡议，不限制 GPL-3.0 已授予的复制、修改和再分发权利。发布或分发衍生作品时，仍需遵守 GPL-3.0 的源代码提供、许可证保留和版权声明要求。</p>
<p>如需获取与发布制品对应的完整源代码，请通过项目主页或 GitHub 联系开发者。</p>
<hr>
<p><a href="https://www.halo.run/store/apps/app-pn0cmop9/releases/app-release-vkfnv3c3">查看版本详情</a></p>]]></description><guid isPermaLink="false">store.halo.run/Release/app-release-vkfnv3c3</guid><pubDate>Thu, 6 Aug 2026 04:18:08 GMT</pubDate></item></channel></rss>