WIN-2308041133\Administrator 10 月之前
父節點
當前提交
3f30f88ec1
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      application/common/model/VideoContributionRecord.php

+ 4 - 1
application/common/model/VideoContributionRecord.php

@@ -17,7 +17,10 @@ class VideoContributionRecord extends Model
     protected $createTime = 'createtime';
     // 追加属性
     protected $append = [];
-
+    public function user()
+    {
+        return $this->belongsTo('User', 'uid', 'id', [], 'LEFT')->setEagerlyType(0);
+    }
     public function videolist()
     {
         return $this->belongsTo('Videolist', 'vid', 'id', [], 'LEFT')->setEagerlyType(0);