Skip to content

Commit 209a9c9

Browse files
committed
update
1 parent 61b3868 commit 209a9c9

File tree

7 files changed

+6
-3
lines changed

7 files changed

+6
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ systemctl restart docker
412412

413413
*推荐没有自己服务器的用户使用此方案部署。Heroku 可以说是业界良心。*
414414

415-
**如果你是新手,请务必参考** 有关 【通过 Heroku 部署】 的具体操作步骤,点击 [此处](https://github.com/luolongfei/freenom/wiki/%E9%80%9A%E8%BF%87-Heroku-%E9%83%A8%E7%BD%B2) 查看。
415+
**如果你是新手或小白,请务必参考** 有关 【通过 Heroku 部署】 的具体操作步骤,点击 [此处](https://github.com/luolongfei/freenom/wiki/%E9%80%9A%E8%BF%87-Heroku-%E9%83%A8%E7%BD%B2) 查看。
416416

417417
如果你是老手,也可以直接点击下方按钮,可以一键部署到 Heroku:
418418

app.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"required": false
1616
},
1717
"FF_TOKEN": {
18-
"description": "令牌,用于验证执行者身份,防止别人恶意触发执行续期任务。假设 FF_TOKEN 的值为 123,你的应用地址为 https://xxx.herokuapp.com,则后续在 Uptimerobot 创建任务的时候 URL 就填 https://xxx.herokuapp.com/?ff-token=123",
18+
"description": "令牌,用于验证执行者身份,防止别人恶意触发执行续期任务。假设 FF_TOKEN 的值为 123,你的应用地址为 https://xxx.herokuapp.com,则后续在 Uptimerobot 创建任务的时候 URL 就填 https://xxx.herokuapp.com/?ff-token=123,这里的令牌默认为 20190214,请自定义它。",
1919
"value": "20190214"
2020
},
2121
"FREENOM_USERNAME": {

heroku/web/index.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class="mdui-img-fluid"
133133
</div>
134134

135135
<div class="mdui-panel-item mdui-panel-item-open" id="shell-box">
136-
<div class="mdui-panel-item-header">
136+
<div class="mdui-panel-item-header" id="shell-title">
137137
<div id="running-box">
138138
<i class="mdui-icon material-icons loading-icon mdui-text-color-red shake">fiber_manual_record</i>
139139
正在执行
@@ -148,6 +148,9 @@ class="mdui-img-fluid"
148148

149149
if ($FF_TOKEN !== getenv('FF_TOKEN')) {
150150
echo '<p>你没有权限触发执行</p>';
151+
echo '<script type="text/javascript">',
152+
'document.getElementById("shell-title").innerHTML = "啊,出错啦";',
153+
'</script>';
151154
} else {
152155
echo '<p>Freenom 自动续期工具</p>';
153156
echo '<p>开始执行</p><br>';

resources/screenshot/heroku02.png

224 KB
Loading

resources/screenshot/heroku03.png

2.36 MB
Loading

resources/screenshot/heroku04.png

2.25 MB
Loading

resources/screenshot/heroku05.png

2.29 MB
Loading

0 commit comments

Comments
 (0)