|
|
@@ -17,17 +17,10 @@ class Income extends Model
|
|
|
protected $createTime = 'createtime';
|
|
|
protected $updateTime = 'updatetime';
|
|
|
// 追加属性
|
|
|
- protected $append = [];
|
|
|
+ protected $append = [
|
|
|
+
|
|
|
+ ];
|
|
|
// 定义关联关系
|
|
|
-// public function videolist()
|
|
|
-// {
|
|
|
-// return $this->belongsTo('Videolist', 'videolist_id', 'id');
|
|
|
-// }
|
|
|
-//
|
|
|
-// public function platform()
|
|
|
-// {
|
|
|
-// return $this->belongsTo('Platform', 'platform_id', 'id');
|
|
|
-// }
|
|
|
public function videolist()
|
|
|
{
|
|
|
return $this->belongsTo('Videolist', 'videolist_id', 'id', [], 'LEFT')->setEagerlyType(0);
|
|
|
@@ -36,8 +29,4 @@ class Income extends Model
|
|
|
{
|
|
|
return $this->belongsTo('Platform', 'platform_id', 'id', [], 'LEFT')->setEagerlyType(0);
|
|
|
}
|
|
|
-// public function users()
|
|
|
-// {
|
|
|
-// return $this->belongsTo('User', 'uid', 'id', [], 'LEFT')->field('id,avatar,nickname,istel,mobile,isrz,level,group_id')->setEagerlyType(0);
|
|
|
-// }
|
|
|
}
|