debug-log-grm

This commit is contained in:
make
2025-05-20 20:05:23 +08:00
parent 5030555a97
commit 94a3595c18
33 changed files with 165 additions and 61 deletions

View File

@@ -147,8 +147,8 @@ class NovelService
'strOrder' => !empty($strOrder) ? $strOrder : 'all',
'intPage' => $intPage ?? 1,
]);
$strUrl = preg_replace('#/{2,}#', '/', (string)$strUrl);
$strUrl = (string)($strUrl ?? '');
$strUrl = preg_replace('#/{2,}#', '/', $strUrl);
return (string)$strUrl;
}
@@ -174,8 +174,8 @@ class NovelService
'strOrder' => !empty($strOrder) ? $strOrder : 'all',
'intPage' => $intPage ?? 1,
]);
$strUrl = preg_replace('#/{2,}#', '/', (string)$strUrl);
$strUrl = (string)($strUrl ?? '');
$strUrl = preg_replace('#/{2,}#', '/', $strUrl);
return (string)$strUrl;
}

View File

@@ -54,8 +54,8 @@ class VideoService
$strUrl = $this->SiteContext->DomainModel->getFomartUrl($strKey, [
'strParentCategory' => !empty($strParentCategory) ? $strParentCategory : '',
]);
$strUrl = preg_replace('#/{2,}#', '/', (string)$strUrl);
$strUrl = (string)($strUrl ?? '');
$strUrl = preg_replace('#/{2,}#', '/', $strUrl);
return (string)$strUrl;
}
@@ -124,8 +124,8 @@ class VideoService
'strOrder' => !empty($strOrder) ? $strOrder : 'all',
'intPage' => $intPage ?? 1,
]);
$strUrl = preg_replace('#/{2,}#', '/', (string)$strUrl);
$strUrl = (string)($strUrl ?? '');
$strUrl = preg_replace('#/{2,}#', '/', $strUrl);
return (string)$strUrl;
}
@@ -148,8 +148,8 @@ class VideoService
'strSortType' => !empty($strSortType) ? $strSortType : 'all',
'intPage' => $intPage ?? 1,
]);
$strUrl = preg_replace('#/{2,}#', '/', (string)$strUrl);
$strUrl = (string)($strUrl ?? '');
$strUrl = preg_replace('#/{2,}#', '/', $strUrl);
return (string)$strUrl;
}