chore: 重写初始提交(清空历史,整理后全量提交)
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | YwxApp [ WE CAN DO IT JUST THINK ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2026-2036 http://ywxapp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: ywxapp <admin@ywxapp.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace addon\seo\controller\backend;
|
||||
|
||||
/**
|
||||
* SEO增强后台控制器
|
||||
*
|
||||
* 业务占位骨架,四个动作对应 menu.json 的四个菜单项。
|
||||
* 实际逻辑(读写 wxapp_seo_config/keywords/snapshots)在 TODO 处实现。
|
||||
*/
|
||||
class Seo extends SeoBackend
|
||||
{
|
||||
/**
|
||||
* SEO概览:收录/排名/内链数等汇总
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
// TODO: 聚合 wxapp_seo_snapshots 与 wxapp_seo_keywords 的数量与概览指标
|
||||
$this->view->assign('title', 'SEO概览');
|
||||
return $this->view->fetch('seo/index');
|
||||
}
|
||||
|
||||
/**
|
||||
* SEO设置:站点标题/关键词/描述模板、robots 等
|
||||
*/
|
||||
public function setting()
|
||||
{
|
||||
// TODO: 读取/保存 wxapp_seo_config(表单提交经 POST 落库)
|
||||
$this->view->assign('title', 'SEO设置');
|
||||
return $this->view->fetch('seo/index');
|
||||
}
|
||||
|
||||
/**
|
||||
* 内链关键词:增删改查
|
||||
*/
|
||||
public function keywords()
|
||||
{
|
||||
// TODO: 内链关键词 CRUD(表 wxapp_seo_keywords)
|
||||
$this->view->assign('title', '内链关键词');
|
||||
return $this->view->fetch('seo/index');
|
||||
}
|
||||
|
||||
/**
|
||||
* 收录统计:搜索引擎收录/排名趋势
|
||||
*/
|
||||
public function stats()
|
||||
{
|
||||
// TODO: 收录排名趋势(表 wxapp_seo_snapshots)
|
||||
$this->view->assign('title', '收录统计');
|
||||
return $this->view->fetch('seo/index');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user