Skip to content

Commit 36d010a

Browse files
author
Taois
committed
feat: 增加启动和停止的返回值
1 parent d73a7a4 commit 36d010a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ const start = async () => {
250250
} else {
251251
console.log('Not running on Vercel!');
252252
}
253-
253+
return true;
254254
} catch (err) {
255255
fastify.log.error(err);
256256
process.exit(1);
@@ -265,8 +265,10 @@ const stop = async () => {
265265
// 停止主服务器
266266
await fastify.server.close();
267267
console.log('🛑 所有服务已优雅停止');
268+
return true;
268269
} catch (err) {
269270
fastify.log.error(`停止服务器时发生错误:${err.message}`);
271+
return false;
270272
}
271273
};
272274

public/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ <h2 id="友链白嫖接口服务">友链(白嫖接口服务)</h2>
161161
<li><a href="https://sourcepower.top/index">源动力-老</a></li>
162162
<li><a href="https://www.arealme.com/brain-memory-game/zh/">电竞专业反应测试</a></li>
163163
<li><a href="https://wwbty.lanzouv.com/iDZaP3d3i5ud">桌面启动器</a></li>
164+
<li><a href="http://sspa8.top:8100/pan/admin/index.php">不知名获取网盘CK工具</a></li>
164165
</ul>
165166
<h2 id="ai接入">AI接入</h2>
166167
<ul>

0 commit comments

Comments
 (0)