From 8fdf9a77df69f8375c55583cb763469e82a9d080 Mon Sep 17 00:00:00 2001 From: koogua Date: Sat, 10 Apr 2021 15:08:04 +0800 Subject: [PATCH] =?UTF-8?q?xs.article.ini=E5=8A=A0=E5=85=A5=E5=BF=BD?= =?UTF-8?q?=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Article.php | 2 +- app/Models/Help.php | 2 +- app/Models/Page.php | 2 +- config/xs.article.ini | 51 ------------------- .../20210314045908_schema_202103141300.php | 2 +- db/migrations/20210403184518.php | 2 +- 6 files changed, 5 insertions(+), 56 deletions(-) delete mode 100644 config/xs.article.ini diff --git a/app/Models/Article.php b/app/Models/Article.php index 67958c1b..4b2c2432 100644 --- a/app/Models/Article.php +++ b/app/Models/Article.php @@ -113,7 +113,7 @@ class Article extends Model * * @var int */ - public $allow_comment = 0; + public $allow_comment = 1; /** * 文字数 diff --git a/app/Models/Help.php b/app/Models/Help.php index f888991c..af462f4c 100644 --- a/app/Models/Help.php +++ b/app/Models/Help.php @@ -48,7 +48,7 @@ class Help extends Model * * @var int */ - public $published = 1; + public $published = 0; /** * 删除标识 diff --git a/app/Models/Page.php b/app/Models/Page.php index e6394524..8b18ed14 100644 --- a/app/Models/Page.php +++ b/app/Models/Page.php @@ -34,7 +34,7 @@ class Page extends Model * * @var int */ - public $published = 1; + public $published = 0; /** * 删除标识 diff --git a/config/xs.article.ini b/config/xs.article.ini deleted file mode 100644 index 13215ba4..00000000 --- a/config/xs.article.ini +++ /dev/null @@ -1,51 +0,0 @@ -project.name = article -project.default_charset = UTF-8 - -server.index = 8383 -server.search = 8384 - -[id] -type = id - -[title] -type = title - -[cover] -type = string - -[summary] -type = body - -[category_id] -type = string -index = self -tokenizer = full - -[owner_id] -type = string -index = self -tokenizer = full - -[create_time] -type = string - -[tags] -type = string - -[category] -type = string - -[owner] -type = string - -[view_count] -type = string - -[comment_count] -type = string - -[like_count] -type = string - -[favorite_count] -type = string \ No newline at end of file diff --git a/db/migrations/20210314045908_schema_202103141300.php b/db/migrations/20210314045908_schema_202103141300.php index 3ab18d89..93d9d84d 100644 --- a/db/migrations/20210314045908_schema_202103141300.php +++ b/db/migrations/20210314045908_schema_202103141300.php @@ -242,7 +242,7 @@ class Schema202103141300 extends Phinx\Migration\AbstractMigration 'url' => '/flash/sale', 'position' => 1, 'priority' => 100, - 'published' => 0, + 'published' => 1, 'create_time' => time(), ]; diff --git a/db/migrations/20210403184518.php b/db/migrations/20210403184518.php index 40200c23..78c0f6e1 100644 --- a/db/migrations/20210403184518.php +++ b/db/migrations/20210403184518.php @@ -825,7 +825,7 @@ final class V20210403184518 extends AbstractMigration 'url' => '/article/list', 'position' => 1, 'priority' => 100, - 'published' => 0, + 'published' => 1, 'create_time' => time(), ];