|
@@ -218,12 +218,12 @@ class Platform extends Api
|
|
|
list($where, $sort, $order, $offset, $limit) = $this->buildparams();
|
|
list($where, $sort, $order, $offset, $limit) = $this->buildparams();
|
|
|
$config = $this->config();
|
|
$config = $this->config();
|
|
|
$list = model('VideoContributionRecord')
|
|
$list = model('VideoContributionRecord')
|
|
|
- ->with('videolist,user')
|
|
|
|
|
|
|
+ ->with('videolist')
|
|
|
->where($map)
|
|
->where($map)
|
|
|
->limit($offset, $limit)
|
|
->limit($offset, $limit)
|
|
|
->select();
|
|
->select();
|
|
|
$total = model('VideoContributionRecord')
|
|
$total = model('VideoContributionRecord')
|
|
|
- ->with('videolist,users')
|
|
|
|
|
|
|
+ ->with('videolist')
|
|
|
->where($map)
|
|
->where($map)
|
|
|
->count();
|
|
->count();
|
|
|
// var_dump(model('VideoShare')->getLastSql());die();
|
|
// var_dump(model('VideoShare')->getLastSql());die();
|
|
@@ -240,12 +240,12 @@ class Platform extends Api
|
|
|
list($where, $sort, $order, $offset, $limit) = $this->buildparams();
|
|
list($where, $sort, $order, $offset, $limit) = $this->buildparams();
|
|
|
$config = $this->config();
|
|
$config = $this->config();
|
|
|
$list = model('VideoUser')
|
|
$list = model('VideoUser')
|
|
|
- ->with('videolist,user')
|
|
|
|
|
|
|
+ ->with('videolist')
|
|
|
->where($map)
|
|
->where($map)
|
|
|
->limit($offset, $limit)
|
|
->limit($offset, $limit)
|
|
|
->select();
|
|
->select();
|
|
|
$total = model('VideoUser')
|
|
$total = model('VideoUser')
|
|
|
- ->with('videolist,users')
|
|
|
|
|
|
|
+ ->with('videolist')
|
|
|
->where($map)
|
|
->where($map)
|
|
|
->count();
|
|
->count();
|
|
|
// var_dump(model('VideoShare')->getLastSql());die();
|
|
// var_dump(model('VideoShare')->getLastSql());die();
|