<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # 微課資源 ## 專題播放頁 @url repositories/play/course&courseID=2144550 ``` /** * 專題播放頁面 * @author wuzhc 2015-08-17 */ public function actionCourse(){ $courseID = (int)RequestUtils::getNormalRequest('courseID'); $weikeID = (int)RequestUtils::getNormalRequest('weikeID'); $userID = Yii::app()->user->id; //過濾數據 add by wuzhc 2016-02-18 if($courseID == 975778 || $courseID == 975474) { if(BrowserUtils::isMobile()) { echo header('location:http://xuetang.cnweike.cn/dl/xuetang.php'); Yii::app()->end(); } } $this->verifyLogin(); $url = $this->createUrl('/repositories/default/index'); //資源不存在時的跳轉鏈接 if(!$courseID){ $this->redirect_msgBox($url, array('msg' => '參數錯誤','time'=>1000)); } //專題內容即對應微課內容 $contentArr = V2CourseService::factory()->getCourseWeikes($courseID,1); //2144550 $subjectDetails = $contentArr['content']; if(!$subjectDetails || $subjectDetails->fdDisabled == 1){ $this->redirect_msgBox($url, array('msg' => '該內容已經被刪除','time'=>1000)); } if($subjectDetails->users->id != $userID){ if($subjectDetails->mainContribute->fdStatus==0 || $subjectDetails->mainContribute->fdStatus==2){ $this->redirect_msgBox($url, array('msg'=>'該內容未審核或者審核不通過! ','time'=>1000)); } } //當前的微課內容 $weikeData = CourseUtils::selectWeike($contentArr, $weikeID) ; $weike = $weikeData['weike'] ; if(!$weike || $weike->fdDisabled == 1) { $this->redirect_msgBox($url, array('msg' => '該內容已經被刪除','time'=>1000)); } //當前內容(微課)的附件 $attachmentFiles = WeikeService::factory()->getAttachmentFiles($weike->id); //播放次數+1 $this->_getContentService()->updateIntegerValue($weike->id, Yii::app()->params['VIDEO_PLAY_TOTAL']); //更新微課播放次數 //對應專題播放次數+1 $this->_getContentService()->updateIntegerValue($courseID,Yii::app()->params['VIDEO_PLAY_TOTAL']); //更新專題播放次數 //獲取知識點、章節信息 $Relevance = ExerciseService::factory()->getRelevance($courseID); $knowleges = $Relevance['knows']; //知識點 $section['edtion'] = $Relevance['edtion'];//獲取章節信息 //獲取輔材信息 $section['auxiliary'] = V2WeikeService::factory()->getSection($courseID); //標簽 $tagsInfo = ''; if($subjectDetails->tags && is_array($subjectDetails->tags)){ foreach ($subjectDetails->tags as $tag){ $tagsInfo .= $tag->fdValue.' ' ; } } $tags = WeikeService::factory()->getTag($weike->id); //獲取視頻打點標簽 json格式 $ext = FileUtils::getExtension($weike->wkfile->fdURL); $presrc = str_replace(".".$ext, ".jpg", $weike->wkfile->fdURL); $weikeID or $weikeID = $weike->id; //第一次打開專題時,weikeID的值為空,默認取值 $weikeCollect = $this->_getContentService()->isFavorite($weikeID,Yii::app()->user->id) ? 1 : 0; //收藏專題下的微課 $subjectCollect = $this->_getContentService()->isFavorite($subjectDetails->id,$userID) ? 1 : 0; //收藏專題 //獲取本人評分 $userRank = CommentService::factory()->getUserRank($userID,$weikeID); if($userRank) $rank=$userRank->fdRank/20; //保存播放記錄到mango //@link https://tower.im/projects/09c3ae86ed0e48fd94cfafa7a449be64/docs/c47e314633324988afa77bcc21be0df2/ $data = array( 'sourceKey' => Yii::app()->params["APPLICATION_MAP"][WK::WEB_TY_KETANG], 'cid' => $subjectDetails->id, 'ctype' => WK::COURSE_TYPE_ID, 'uid' => $userID ?: 0, 'time' => date('Y-m-d H:i:s',time()), 'type' => 1, 'excluded' => $subjectDetails->fdDisabled, 'client' => json_encode($this->_getClientInfo()), ); $this->render('course/content', array( 'data' => $data, 'tags' => $tags, 'files' => $attachmentFiles, 'presrc' => $presrc , 'weike' => $weike, 'course' => $subjectDetails, 'section' => $section, 'tagsInfo' => $tagsInfo, 'userRank' => $rank, 'contentArr' => $contentArr, 'knowleges' => $knowleges, 'weikeCollect' => $weikeCollect, 'subjectCollect' => $subjectCollect, )) ; } ``` ![](./img/upload/01.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看