id: f317471f396a4ba78a71fb47527731e1
parent_id: 
item_type: 1
item_id: a7c6c3e7030a4b1c9eea072585ce73af
item_updated_time: 1764345644931
title_diff: "[{\"diffs\":[[1,\"CloudFlare系列教程一：巧用 Workers，实现每日任务自动化!\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":37}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>CloudFlare系列教程一：巧用 Workers，实现每日任务自动化!</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <meta name=\\\"content-class\\\" content=\\\"yinxiang.peso.superNote\\\"/>\\\r\\\n  <meta name=\\\"application-data:yinxiang.noteLayout\\\" content=\\\"{\\\"lineSpace\\\":\\\"recommend\\\",\\\"paragraphSpace\\\":\\\"recommend\\\"}\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"48068\\\"></a>\\\r\\\n<h1>CloudFlare系列教程一：巧用 Workers，实现每日任务自动化!</h1>\\\r\\\n\\\r\\\n<div><span style=\\\"\\\"><div style=\\\"max-width: 700px;\\\"><p></p><div style=\\\"--en-blockquote: true; box-sizing: border-box; border-left: 3px solid #b4c0cc; background-position: initial initial; background-repeat: initial initial;\\\"><div>原文链接: <a href=\\\"https://mp.weixin.qq.com/s?__biz=MzI0NTU1MTA5MA==&amp;mid=2247488703&amp;idx=1&amp;sn=046dd46e13e37f6ccd2ee94646b43093&amp;chksm=e8733dc557fbac379a6874cc65038c5e909205629dcba9d69b207e183f184cd4931733f97caf&amp;mpshare=1&amp;scene=1&amp;srcid=1115Nr20cWbxBvh9Y7S5BYL1&amp;sharer_shareinfo=85c32d1e74df7b0dcbe9ee6b3bceaa45&amp;sharer_shareinfo_first=85c32d1e74df7b0dcbe9ee6b3bceaa45#rd\\\"><span>https://mp.weixin.qq.com/s?__biz=MzI0NTU1MTA5MA==&amp;mid=224748...</span></a></div></div><p></p><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">原创</span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">一只会飞的旺旺</span></span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><a style=\\\"-webkit-tap-highlight-color: transparent;\\\"> 一只会飞的旺旺 </a></span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><em style=\\\"-webkit-tap-highlight-color: transparent;\\\"></em></span></div><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; background-color: #f9f8f4; border-radius: 24px; max-width: 680px; width: 100%; box-sizing: border-box;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: 0.1em; color: #333; text-align: justify;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">我手上有些服务，比如 GLaDOS之类的网站，都需要每天手动签到一下来维持活跃或获取积分。这个操作本身不复杂，但每天重复，就显得很繁琐，也容易忘记。</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: 0.1em; color: #333; text-align: justify;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">于是我开始琢磨，有没有一种“零成本”的自动化方案？</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: 0.1em; color: #333; text-align: justify;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">这个方案需要满足几个条件：</span></p><ol style=\\\"-webkit-tap-highlight-color: transparent; list-style: none;\\\"><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">1. </span><strong style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; font-weight: bold;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">免费</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">：只是个签到，不想为此付费。</span></span></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">2. </span><strong style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; font-weight: bold;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">稳定</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">：能持续、可靠地运行。</span></span></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">3. </span><strong style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; font-weight: bold;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">省事</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">：一次配置，长期有效。</span></span></li></ol><p style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: 0.1em; color: #333; text-align: justify;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">最后找到了一个比较理想的方案：</span><strong style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; font-weight: bold;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">CloudFlare Workers</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">。</span></p><h3 style=\\\"-webkit-tap-highlight-color: transparent; font-weight: 600; color: #8b1e22; text-shadow: 1px 1px 1px rgba(255,255,255,0.7); border-left: 4px solid #8b1e22; border-bottom: 1px dashed rgba(139,30,34,0.4);\\\"><strong style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; font-weight: bold;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">准备</span></strong></h3><p style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: 0.1em; color: #333; text-align: justify;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">在开始操作前，简单说一下我们在用什么。</span></p><ul style=\\\"-webkit-tap-highlight-color: transparent; list-style: none;\\\"><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">• </span><strong style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; font-weight: bold;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">CloudFlare (CF)</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">：这是一家全球知名的网络服务公司，提供 CDN 加速、网络安全防护等服务。 很多人用它的免费套餐来加速和保护自己的网站。简单来说，它是一个非常强大的网络基础设施平台。</span></span></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">• </span><strong style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; font-weight: bold;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">CloudFlare Workers</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">：这是 CF 提供的一项“无服务器”计算服务。 你可以把它理解成一个能“在全球边缘节点运行你的代码”的平台。最关键的是，它有一个免费套餐，每天提供 10 万次的免费请求额度。 对于我们这种每天仅需执行一两次的签到任务，这个额度绰绰有余。</span></span></li></ul><p style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: 0.1em; color: #333; text-align: justify;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">用 Workers 的好处是，我们不需要自己的服务器，代码部署上去就能按时自动运行，完美符合我们的需求。</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: 0.1em; color: #333; text-align: justify;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">另外后续教程经常会需要用到域名,这个可以参考下面的教程去注册或者购买一个域名!</span></p><div style=\\\"--en-blockquote: true; -webkit-tap-highlight-color: transparent; font-style: normal; border-left: 4px solid #891e22; color: #666; background: rgba(139,30,34,0.03);\\\"><p style=\\\"-webkit-tap-highlight-color: transparent; color: #666; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><a href=\\\"https://mp.weixin.qq.com/s?__biz=MzI0NTU1MTA5MA==&amp;mid=2247488036&amp;idx=1&amp;sn=5fcecdc33305c8dd955b8fc4ece6c36e&amp;scene=21#wechat_redirect\\\" style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(139,30,34); text-decoration: none;\\\" target=\\\"_blank\\\">https://mp.weixin.qq.com/s/7LuGZF1Uq1KBZVpMYDCBkA</a></span></p></div><h3 style=\\\"-webkit-tap-highlight-color: transparent; font-weight: 600; color: #8b1e22; text-shadow: 1px 1px 1px rgba(255,255,255,0.7); border-left: 4px solid #8b1e22; border-bottom: 1px dashed rgba(139,30,34,0.4);\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">实践指南</span></h3><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/923d250e83314e2bbb0db64245a6c46a\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" alt=\\\"image-20251016091706846\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; max-width: 680px; display: block; border: 8px solid white; width: auto;\\\" width=\\\"auto\\\"/></span><div style=\\\"-webkit-tap-highlight-color: transparent; text-align: center; color: #666;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; __visibility: visible;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">image-20251016091706846</span></span></div></div><p style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: 0.1em; color: #333; text-align: justify;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">我以GLaDOS这个网站为例,来教大家如何使用CloudFlare Workers来实现签到功能! (对了,多说一句,要是有教育邮箱,这个网站可以领取365天的免费服务哦!~)</span></p><div style=\\\"--en-blockquote: true; -webkit-tap-highlight-color: transparent; font-style: normal; border-left: 4px solid #891e22; color: #666; background: rgba(139,30,34,0.03);\\\"><p style=\\\"-webkit-tap-highlight-color: transparent; color: #666; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">脚本地址: https://github.com/axinhouzilaoyue/cloudflare</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; color: #666; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">GLaDOS官网: https://glados.rocks</span></p></div><ul style=\\\"-webkit-tap-highlight-color: transparent; list-style: none;\\\"><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">• </span><strong style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; font-weight: bold;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">第一步：创建 Worker</span></strong></span></li><ol style=\\\"-webkit-tap-highlight-color: transparent; list-style: none;\\\"><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">1. 登录 Cloudflare Dashboard (https://dash.cloudflare.com/)。</span></span></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">2. 在左侧菜单栏找到并进入 “Workers &amp; Pages” 页面。</span></span></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">3. 点击“Create application”，然后选择“Create Worker”。</span></span></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">4. 你可以为你的 Worker 自定义一个名字，比如 </span><code style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; background: rgba(139,30,34,0.1); border-radius: 4px;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">glados-checkin</span></code><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">，然后点击“Deploy”。</span></span></li></ol></ul><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/fa16224cf5034735b9839182fe6cd6cf\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" alt=\\\"image-20251016092056993\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; max-width: 100%; display: block; border: 8px solid white; width: auto;\\\" width=\\\"auto\\\"/></span><div style=\\\"-webkit-tap-highlight-color: transparent; text-align: center; color: #666;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; __visibility: visible;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">image-20251016092056993</span></span></div></div><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/c76a9fd09d3d47e5a485d3bbf97f0aa2\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" alt=\\\"image-20251016092129417\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; max-width: 100%; display: block; border: 8px solid white; width: auto;\\\" width=\\\"auto\\\"/></span><div style=\\\"-webkit-tap-highlight-color: transparent; text-align: center; color: #666;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; __visibility: visible;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">image-20251016092129417</span></span></div></div><ul style=\\\"-webkit-tap-highlight-color: transparent; list-style: none;\\\"><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">• </span><strong style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; font-weight: bold;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">第二步：复制代码</span></strong></span></li><ol style=\\\"-webkit-tap-highlight-color: transparent; list-style: none;\\\"><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">1. 部署成功后，点击“Edit code”进入代码编辑器。</span></span></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">2. 将前面脚本网站中 glados.js 脚本代码 的全部内容复制并替换掉编辑器里的所有默认代码。</span></span></li></ol></ul><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/8ad351816e394335bb44a8307a3e9d4f\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" alt=\\\"image-20251016094027981\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; max-width: 100%; display: block; border: 8px solid white; width: auto;\\\" width=\\\"auto\\\"/></span><div style=\\\"-webkit-tap-highlight-color: transparent; text-align: center; color: #666;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; __visibility: visible;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">image-20251016094027981</span></span></div></div><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/09beeca1d20546a8b6408633839f63df\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" alt=\\\"image-20251016092129417\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; max-width: 100%; display: block; border: 8px solid white; width: auto;\\\" width=\\\"auto\\\"/></span><div style=\\\"-webkit-tap-highlight-color: transparent; text-align: center; color: #666;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; __visibility: visible;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">image-20251016092129417</span></span></div></div><ul style=\\\"-webkit-tap-highlight-color: transparent; list-style: none;\\\"><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">• </span><strong style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; font-weight: bold;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">第三步：配置账号信息（核心）</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">这是最关键的一步，推荐使用环境变量，更安全。我这里是直接在代码里修改了!大家可以二选其一就行!</span></span></li><ul style=\\\"-webkit-tap-highlight-color: transparent; list-style: none;\\\"><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">• </span><em style=\\\"-webkit-tap-highlight-color: transparent; color: #555; font-style: italic;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">(旁注：JSON 格式要求比较严格，建议先在文本编辑器里编辑好再粘贴。注意使用英文双引号。)</span></em></span></li></ul><ol style=\\\"-webkit-tap-highlight-color: transparent; list-style: none;\\\"><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">1. 返回 Worker 的详情页面，点击 </span><code style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; background: rgba(139,30,34,0.1); border-radius: 4px;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">Settings</span></code><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"> &gt; </span><code style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; background: rgba(139,30,34,0.1); border-radius: 4px;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">Variables</span></code><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">。</span></span></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">2. 在 “Environment Variables” 部分，点击 “Add variable”。</span></span></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">3. 我们需要添加的变量是 </span><code style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; background: rgba(139,30,34,0.1); border-radius: 4px;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">GLADOS_ACCOUNTS</span></code><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">。变量名填入 </span><code style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; background: rgba(139,30,34,0.1); border-radius: 4px;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">GLADOS_ACCOUNTS</span></code><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">，</span><strong style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; font-weight: bold;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">变量值</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">填入你的 GLaDOS 账号信息，格式是一个 JSON 数组。</span><div style=\\\"-webkit-tap-highlight-color: transparent; background: #faf8f5; border-radius: 8px; overflow-x: auto; border-top: 3px solid #8b1e22;\\\"><div style=\\\"--en-codeblock: true; --en-meta: {&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true}; box-sizing: border-box; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;\\\"><pre><span>[</span><br/><span>{&quot;email&quot;:&quot;你的邮箱1@example.com&quot;,&quot;cookie&quot;:&quot;你的cookie值1&quot;},</span><br/><span>{&quot;email&quot;:&quot;你的邮箱2@example.com&quot;,&quot;cookie&quot;:&quot;你的cookie值2&quot;}</span><br/><span>]</span><br/><span>```    4.  如果你需要 Telegram 通知，可以额外添加 `TGTOKEN` 和 `TGID` 两个变量，分别填入你的 Telegram Bot Token 和 Chat ID。如果不需要，忽略此项。</span><br/></pre></div></div></span></li></ol></ul><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/e5ee84bb5ba04dd1b9b381bfcb483059\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" alt=\\\"image-20251016094257764\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; max-width: 100%; display: block; border: 8px solid white; width: auto;\\\" width=\\\"auto\\\"/></span><div style=\\\"-webkit-tap-highlight-color: transparent; text-align: center; color: #666;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; __visibility: visible;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">image-20251016094257764</span></span></div></div><ul style=\\\"-webkit-tap-highlight-color: transparent; list-style: none;\\\"><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">• </span><strong style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; font-weight: bold;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">第四步：获取 Cookie</span></strong><p style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: 0.1em; color: #333; text-align: justify;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></p><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/08bb2ea8b34148b590a4b15ca3b66f3d\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" alt=\\\"image-20251016092313973\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; max-width: 100%; display: block; border: 8px solid white; width: auto;\\\" width=\\\"auto\\\"/></span><div style=\\\"-webkit-tap-highlight-color: transparent; text-align: center; color: #666;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; __visibility: visible;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">image-20251016092313973</span></span></div></div><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></p></span></li><ul style=\\\"-webkit-tap-highlight-color: transparent; list-style: none;\\\"><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">• </span><em style=\\\"-webkit-tap-highlight-color: transparent; color: #555; font-style: italic;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">(旁注：Cookie 是账号凭证，非常敏感，不要泄露给任何人。)</span></em></span></li></ul><ol style=\\\"-webkit-tap-highlight-color: transparent; list-style: none;\\\"><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">1. 用浏览器登录 GLaDOS 官网。</span></span></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">2. 按 F12 打开开发者工具，切换到 “Network” (网络) 标签页。</span></span></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">3. 刷新页面，随便找一个请求，在 “Headers” (标头) 下找到 </span><code style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; background: rgba(139,30,34,0.1); border-radius: 4px;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">Cookie</span></code><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"> 字段，复制其完整的字符串值。这个值就是你需要的 </span><code style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; background: rgba(139,30,34,0.1); border-radius: 4px;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">cookie</span></code><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">。</span></span></li></ol><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">• </span><strong style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; font-weight: bold;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">第五步：设置定时任务</span></strong></span></li><ol style=\\\"-webkit-tap-highlight-color: transparent; list-style: none;\\\"><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">1. 回到 Worker 详情页面，点击 </span><code style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; background: rgba(139,30,34,0.1); border-radius: 4px;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">Triggers</span></code><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"> (触发器)。</span></span></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">2. 在 “Cron Triggers” 部分，点击 “Add Cron Trigger”。</span></span></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">3. Cron 表达式可以填 </span><code style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; background: rgba(139,30,34,0.1); border-radius: 4px;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">0 22 * * *</span></code><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">，这代表每天在 UTC 时间的 22:00（即北京时间第二天早上 6:00）执行一次。你可以根据自己的需求调整。</span></span></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">4. 保存触发器。</span></span></li></ol></ul><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/e3ffdd0d45d149af959d5bcc28a37396\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" alt=\\\"image-20251016092452241\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; max-width: 100%; display: block; border: 8px solid white; width: auto;\\\" width=\\\"auto\\\"/></span><div style=\\\"-webkit-tap-highlight-color: transparent; text-align: center; color: #666;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; __visibility: visible;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">image-20251016092452241</span></span></div></div><p style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: 0.1em; color: #333; text-align: justify;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">到这里，GLaDOS 的自动签到就配置完成了。它会每天自动在设定的时间运行一次。你也可以手动访问一下网址,进行签到!</span></p><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/13785f90422f4424849fa34fc8ea6158\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" alt=\\\"image-20251016094431125\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; max-width: 100%; display: block; border: 8px solid white; width: auto;\\\" width=\\\"auto\\\"/></span><div style=\\\"-webkit-tap-highlight-color: transparent; text-align: center; color: #666;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; __visibility: visible;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">image-20251016094431125</span></span></div></div><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/bd32350265a042fe9e6e43fede3d86a2\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" alt=\\\"image-20251016092617731\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; max-width: 100%; display: block; border: 8px solid white; width: auto;\\\" width=\\\"auto\\\"/></span><div style=\\\"-webkit-tap-highlight-color: transparent; text-align: center; color: #666;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; __visibility: visible;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">image-20251016092617731</span></span></div></div><h3 style=\\\"-webkit-tap-highlight-color: transparent; font-weight: 600; color: #8b1e22; text-shadow: 1px 1px 1px rgba(255,255,255,0.7); border-left: 4px solid #8b1e22; border-bottom: 1px dashed rgba(139,30,34,0.4);\\\"><strong style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; font-weight: bold;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">补充 (FAQ)</span></strong></h3><ul style=\\\"-webkit-tap-highlight-color: transparent; list-style: none;\\\"><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">• </span><strong style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; font-weight: bold;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">这个服务真的完全免费吗？</span></strong></span></li><ul style=\\\"-webkit-tap-highlight-color: transparent; list-style: none;\\\"><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">• A：是的。CloudFlare Workers 每天有10万次免费调用额度，我们每天只用一两次，完全在免费范围内。所以没有额外费用。</span></span></li></ul><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">• </span><strong style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; font-weight: bold;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">安全吗？我的账号信息会不会泄露？</span></strong></span></li><ul style=\\\"-webkit-tap-highlight-color: transparent; list-style: none;\\\"><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">• A：安全性取决于你自己。Cookie 和密码都存储在你的 CloudFlare 账户里，只要你的 CF 账户不泄露，这些信息就是安全的。这也是为什么推荐 GLaDOS 教程使用环境变量，因为它比直接写在代码里更安全一点。</span></span></li></ul><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">• </span><strong style=\\\"-webkit-tap-highlight-color: transparent; color: #8b1e22; font-weight: bold;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">如果签到失败怎么办？</span></strong></span></li><ul style=\\\"-webkit-tap-highlight-color: transparent; list-style: none;\\\"><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">• A：最常见的原因是 GLaDOS 的 Cookie 过期了，需要重新获取并更新到环境变量里。对于 SSPanel，检查一下网址和账号密码是否填写正确。</span></span></li></ul></ul><hr style=\\\"-webkit-tap-highlight-color: transparent; height: 1px; border: none; background: linear-gradient(to right,rgba(139,30,34,0),rgba(139,30,34,0.5),rgba(139,30,34,0)); width: 80%; text-align: center; color: #8b1e22;\\\"/><p style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: 0.1em; color: #333; text-align: justify;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">好了，今天的操作笔记就整理到这里。这个方案基本实现了“一劳永逸”的自动签到，值得一试。</span></p><h3 style=\\\"-webkit-tap-highlight-color: transparent; font-weight: 600; color: #8b1e22; text-shadow: 1px 1px 1px rgba(255,255,255,0.7); border-left: 4px solid #8b1e22; border-bottom: 1px dashed rgba(139,30,34,0.4);\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">历史文章</span></h3><ul style=\\\"-webkit-tap-highlight-color: transparent; list-style: none;\\\"><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">• 基于CloudFlare搭建轻量级订阅管理系统 ( <a href=\\\"https://mp.weixin.qq.com/s?__biz=MzI0NTU1MTA5MA==&amp;mid=2247487920&amp;idx=1&amp;sn=98756c2a2bba414c2a486cffdc9ee0bf&amp;scene=21#wechat_redirect\\\" style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(139,30,34); text-decoration: none;\\\" target=\\\"_blank\\\">https://mp.weixin.qq.com/s/1jiy9Nm18mH7z94RMOJGbw</a> )</span></span></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">• 基于CloudFlare搭建文字语音互转网站 ( <a href=\\\"https://mp.weixin.qq.com/s?__biz=MzI0NTU1MTA5MA==&amp;mid=2247488352&amp;idx=1&amp;sn=c45d388605ab8643a12f15b6c9fd0d93&amp;scene=21#wechat_redirect\\\" style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(139,30,34); text-decoration: none;\\\" target=\\\"_blank\\\">https://mp.weixin.qq.com/s/F4-Pc6etHVXExGhPATLppw</a> )</span></span></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">• 基于CloudFlare搭建书签导航站 ( <a href=\\\"https://mp.weixin.qq.com/s?__biz=MzI0NTU1MTA5MA==&amp;mid=2247487959&amp;idx=1&amp;sn=a083d382e17796f28a1e1d8aef7d002f&amp;scene=21#wechat_redirect\\\" style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(139,30,34); text-decoration: none;\\\" target=\\\"_blank\\\">https://mp.weixin.qq.com/s/6Q_mGL0Fx--4QZ_q6aq7gQ</a> )</span></span></li></ul></span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></span></div></div></div></div></div></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":32364}]"
metadata_diff: {"new":{"id":"a7c6c3e7030a4b1c9eea072585ce73af","parent_id":"f67288c3a0be4374b5d532b5dcc3aabc","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764348817353,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T21:03:20.806Z
created_time: 2025-11-28T21:03:20.806Z
type_: 13