Compare commits
3 Commits
cea593c8f9
...
914208aa70
| Author | SHA1 | Date | |
|---|---|---|---|
| 914208aa70 | |||
| ce3cf309f9 | |||
| 743aa16428 |
@ -25,7 +25,6 @@
|
||||
- [监控服务](#-监控服务)
|
||||
- [安全说明](#-安全说明)
|
||||
- [常见问题](#-常见问题)
|
||||
- [更新日志](#-更新日志)
|
||||
- [许可证](#-许可证)
|
||||
|
||||
---
|
||||
|
||||
@ -8,7 +8,7 @@ require_once __DIR__ . '/app/db_helper.php';
|
||||
require_once __DIR__ . '/mofangidc.php';
|
||||
|
||||
// Token文件路径(存储API_PASS)
|
||||
$tokenFile = __DIR__ . '/app/token_pass.php';
|
||||
$tokenFile = __DIR__ . '/app/pass.php'; # 更新路径为app/pass.php,避免与其他配置文件混淆
|
||||
|
||||
// 检查是否首次访问(需要设置API_PASS)
|
||||
$needSetup = !file_exists($tokenFile);
|
||||
@ -43,7 +43,7 @@ if ($needSetup && $_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['setup_p
|
||||
|
||||
// 如果需要设置密码,显示设置页面
|
||||
if ($needSetup) {
|
||||
?>
|
||||
?>n
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user