Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yuantuo666 committed Mar 15, 2023
1 parent a1caba0 commit 32f986d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions common/download.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)", "未知错误!<br />错误:" . json_encode($json4), true); // 未知错误
Expand Down
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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将在五秒内跳转到安装界面");
}

// 通用响应头
Expand Down

0 comments on commit 32f986d

Please sign in to comment.