select(); $signPoster = count($signPoster) > 0 ? $signPoster->toArray() : []; $poster = SystemConfigService::get('sign_default_poster'); if (count($signPoster) > 0) { foreach ($signPoster as $key => $value) { if ($value['sign_time'] == $time) { $poster = $value['poster']; $sign_talk = $value['sign_talk']; break; } } } $sign_info['poster'] = isset($poster) ? $poster : ''; $sign_info['sign_talk'] = isset($sign_talk) ? $sign_talk : ''; return $sign_info; } }