From 32f986def756e9dd55c08ccb64106e8dc8093268 Mon Sep 17 00:00:00 2001 From: yuantuo666 Date: Wed, 15 Mar 2023 18:49:00 +0800 Subject: [PATCH] bug fix --- common/download.php | 6 +++--- index.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/download.php b/common/download.php index b71b86f7..3c6d84b5 100644 --- a/common/download.php +++ b/common/download.php @@ -69,9 +69,9 @@ 113 => ["传参错误(113)", "获取失败,请检查参数是否正确。"], 118 => ["服务器错误(118)", "服务器错误,请求百度服务器时,未传入sekey参数或参数错误。"], 110 => ["服务器错误(110)", "服务器错误,可能服务器IP被百度封禁,请切换 IP 或更换服务器重试。"], - 8001 => "普通账号被限制,请检查普通账号状态", - 9013 => "普通账号 Cookie 状态异常,请检查:Cookie 是否设置完整正确;账号是否被限制;Cookie 是否过期", - 9019 => "普通账号 Cookie 状态异常,请检查:Cookie 是否设置完整正确;账号是否被限制;Cookie 是否过期", + 8001 => ["普通账号错误(8001)", "普通账号被限制,请检查普通账号状态"], + 9013 => ["普通账号错误(9013)", "普通账号被限制,请检查普通账号状态"], + 9019 => ["普通账号错误(9019)", "普通账号 Cookie 状态异常,请检查:Cookie 是否设置完整正确;账号是否被限制;Cookie 是否过期"], ]; if (isset($error[$errno])) dl_error($error[$errno][0], $error[$errno][1]); else dl_error("获取下载链接失败 ($errno)", "未知错误!
错误:" . json_encode($json4), true); // 未知错误 diff --git a/index.php b/index.php index af7903ff..2371fae2 100644 --- a/index.php +++ b/index.php @@ -52,8 +52,8 @@ if (!$BDUSS or !$STOKEN or !$csrfToken or !$BAIDUID) { http_response_code(503); header('Content-Type: text/plain; charset=utf-8'); - header('Refresh: 5;url=https://github.com/yuantuo666/baiduwp-php'); - die("HTTP 503 服务不可用!\r\n配置错误,使用本项目必须配置**完整**的普通账号 Cookie!\r\n请重新 Clone 项目并配置!\r\n将在五秒内跳转到 GitHub 储存库!"); + header('Refresh: 5;url=./install.php'); + die("HTTP 503 服务不可用!\r\n配置错误,使用本项目必须配置**完整**的普通账号 Cookie!\r\n请重安装此项目!\r\n将在五秒内跳转到安装界面!"); } // 通用响应头