src/Biz/Course/Service/Impl/LiveReplayServiceImpl.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace Biz\Course\Service\Impl;
use AppBundle\Common\ArrayToolkit;
use Biz\BaseService;
use Biz\CloudPlatform\Client\CloudAPIIOException;
use Biz\Course\LiveReplayException;
use Biz\Course\Service\LiveReplayService;
use Biz\System\Service\LogService;
use Biz\Util\EdusohoLiveClient;
// Refactor: 该类不应该在Course模块,应该在和LiveActivity放一块,或者另启一个模块LiveRoom
class LiveReplayServiceImpl extends BaseService implements LiveReplayService
{
private $liveClient = null;
public function getReplay($id)
{
return $this->getLessonReplayDao()->get($id);
}
public function findReplayByLessonId($lessonId, $lessonType = 'live')
{
return $this->getLessonReplayDao()->findByLessonId($lessonId, $lessonType);
}
public function addReplay($replay)
{
$user = $this->getCurrentUser();
$replay['userId'] = $user['id'];
$replay['createdTime'] = time();
$replay = $this->getLessonReplayDao()->create($replay);
$this->dispatchEvent('live.replay.create', array('replay' => $replay));
return $replay;
}
public function deleteReplayByLessonId($lessonId, $lessonType = 'live')
{
$result = $this->getLessonReplayDao()->deleteByLessonId($lessonId, $lessonType);
$this->dispatchEvent('live.replay.delete', array('lessonId' => $lessonId));
return $result;
}
public function deleteReplaysByCourseId($courseId, $lessonType = 'live')
{
$result = $this->getLessonReplayDao()->deleteByCourseId($courseId, $lessonType);
$this->dispatchEvent('live.replay.delete', array('courseId' => $courseId));
return $result;
}
public function updateReplay($id, $fields)
{
$replay = $this->getLessonReplayDao()->get($id);
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。