Browse Source

修改b端:获取资讯列表的接口

FengR 2 months ago
parent
commit
2994ec8671
1 changed files with 0 additions and 7 deletions
  1. 0 7
      app/Model/Article.php

+ 0 - 7
app/Model/Article.php

@@ -22,13 +22,6 @@ class Article extends Model
     {
     {
         return $this->belongsTo(Category::class, 'catid', 'id');
         return $this->belongsTo(Category::class, 'catid', 'id');
     }
     }
-    /**
-     * 定义与分类的多对一关系
-     */
-    public function category()
-    {
-        return $this->belongsTo(Category::class, 'catid', 'id');
-    }
     /**
     /**
      * 定义与分类的多对一关系
      * 定义与分类的多对一关系
      */
      */