debug
This commit is contained in:
@@ -57,12 +57,16 @@ class NovelService
|
||||
public function getPageUrl($strKey, array $arrArgs,): string
|
||||
{
|
||||
$strSfVal = $this->SiteContext->DomainModel->getFomartSubject($strKey, '', false);
|
||||
$strSfVal = htmlspecialchars_decode($strSfVal);
|
||||
$arrKeys = [];
|
||||
$arrVals = [];
|
||||
foreach ($arrArgs as $strKey => $strVal) {
|
||||
$arrKeys[] = '{' . $strKey . '}';
|
||||
$arrVals[] = $strVal;
|
||||
}
|
||||
// var_dump($strSfVal);
|
||||
// var_dump($arrKeys);
|
||||
// var_dump($arrVals);
|
||||
|
||||
return str_replace($arrKeys, $arrVals, $strSfVal);
|
||||
}
|
||||
@@ -183,6 +187,7 @@ class NovelService
|
||||
*/
|
||||
public function getNovelRankUrl($strGender, $strCategory, $strStatus, $strOrder, $intPage): string
|
||||
{
|
||||
|
||||
$strKey = 'RANK_LIST_URL';
|
||||
$strUrl = $this->getPageUrl($strKey, [
|
||||
'strGender' => !empty($strGender) ? $strGender : '',
|
||||
|
||||
Reference in New Issue
Block a user