debug
This commit is contained in:
@@ -683,10 +683,10 @@ class VideoService
|
||||
$arrVideo = $this->VideoModel->getVideoByVId($intVId);
|
||||
|
||||
// 取前5个元素
|
||||
$strTopActor = array_slice($arrVideo['v_actor'], 0, 5);
|
||||
$strTopActor = (is_array($arrVideo['v_actor'] ?? null)) ? array_slice($arrVideo['v_actor'], 0, 5) : '';
|
||||
|
||||
// 取前5个元素
|
||||
$strTopDirectors = array_slice($arrVideo['v_director'], 0, 5);
|
||||
$strTopDirectors = (is_array($arrVideo['v_director'] ?? null)) ? array_slice($arrVideo['v_director'], 0, 5) : '';
|
||||
|
||||
// 点击数
|
||||
$arrVideoClicks = $this->VideoClicksModel->getStats($intVId);
|
||||
|
||||
Reference in New Issue
Block a user