fix: prioritize home seo defaults for openai domains
This commit is contained in:
@@ -4,6 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace app\home;
|
||||
|
||||
use app\common\helper\DomainSeoNamingHelper;
|
||||
use app\model\ConverterMovel;
|
||||
use app\model\GanRaoMaModel;
|
||||
use app\model\CategoryModel;
|
||||
@@ -75,8 +76,16 @@ abstract class BaseController
|
||||
*/
|
||||
private function initSiteTKD()
|
||||
{
|
||||
$strSiteName = DomainSeoNamingHelper::normalizeSiteName(
|
||||
(string)($this->request->DomainModel->d_name ?? ''),
|
||||
(string)($this->request->DomainModel->d_domain ?? '')
|
||||
);
|
||||
if ($strSiteName !== '' && isset($this->request->DomainModel)) {
|
||||
$this->request->DomainModel->d_name = $strSiteName;
|
||||
}
|
||||
|
||||
ConverterMovel::setVal([
|
||||
'strSiteName' => $this->request->DomainModel->d_name,
|
||||
'strSiteName' => $strSiteName,
|
||||
'strSiteDomain' => $this->request->DomainModel->d_domain,
|
||||
'strSiteKeywords' => $this->request->DomainModel->d_keywords,
|
||||
'strSiteDescription' => $this->request->DomainModel->d_description,
|
||||
|
||||
Reference in New Issue
Block a user