WIN-2308041133\Administrator 9 달 전
부모
커밋
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 $createTime = 'createtime';
     // 追加属性
     // 追加属性
     protected $append = [];
     protected $append = [];
-
+    public function user()
+    {
+        return $this->belongsTo('User', 'uid', 'id', [], 'LEFT')->setEagerlyType(0);
+    }
     public function videolist()
     public function videolist()
     {
     {
         return $this->belongsTo('Videolist', 'vid', 'id', [], 'LEFT')->setEagerlyType(0);
         return $this->belongsTo('Videolist', 'vid', 'id', [], 'LEFT')->setEagerlyType(0);