Added SwitchRegion parameters (#406)

Additional title parameters: data→series→series_title
This commit is contained in:
AisukaYuki 2022-07-05 08:05:29 +08:00 committed by GitHub
parent 0ea7504242
commit a1fc135dce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ function EnvInfo() {
if (typeof($response) !== 'undefined') {
const raw = JSON.parse($response.body);
const data = raw.data || raw.result || {};
SwitchRegion(data.title || (raw.code === -404 ? -404 : null))
SwitchRegion(data.series?.series_title || data.title || (raw.code === -404 ? -404 : null))
.then(s => s ? $done({
status: $.isQuanX ? "HTTP/1.1 408 Request Timeout" : 408,
headers: {