WIN-2308041133\Administrator 7 months ago
parent
commit
3f30f88ec1
1 changed files with 4 additions and 1 deletions
  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);