该问题已被锁定!
7
关注
4836
浏览

小改了一下,网站视频手机播放

AI智能回复搜索中,请稍后...

为什么被折叠? 0 个回复被折叠
sinowlc 中级会员 用户来自于: 江苏省南京市
2017-02-03 13:55
好像改成video标签也可以

NBA菜鸟 初级会员 用户来自于: 广西河池市
2017-02-01 21:38
我把所有的VideoUrlParser.php 里返回的embed改成了 iframe 在手机端还是不成功呢?
楼主能发下 具体如何实现吗?能把改好的代码发上来么?谢谢


 * @license PHP Version 3.0 {@link http://www.php.net/license/3_0.txt}
 *
 * Usage
 * require_once "VideoUrlParser.class.php";
 * $urls = "http://v.youku.com/v_show/id_XMjI4MDM4NDc2.html";
 * $urls = "http://www.tudou.com/playlist/p/l13087099.html";
 * $urls = "http://www.tudou.com/programs/view/ufg-A3tlcxk/";
 * $urls = "http://v.ku6.com/special/show_4926690/Klze2mhMeSK6g05X.html";
 * $urls = "http://www.56.com/u68/v_NjI2NTkxMzc.html";
 * $urls = "http://www.letv.com/ptv/vplay/1168109.html";
 * $urls = "http://video.sina.com.cn/v/b/46909166-1290055681.html";
 * $urls = "http://www.youtube.com/watch?v=n6NLtldvGCk";
 *
 * foreach($urls as $url){
 * $info = VideoUrlParser::parse($url);
 * //var_dump($info);
 * echo "{$info['title']}";
 * echo "
"; * echo $info['object']; * echo "
"; * } * * * * // 优酷 * http://v.youku.com/v_show/id_XMjU0NjY4OTEy.html * * * // 土豆 * http://www.tudou.com/playlist/p/a65929.html?iid=74905844 * * * // 56 * http://www.56.com/u98/v_NTkyODY2NTU.html * * * // Youtube * http://www.youtube.com/watch?v=n6NLtldvGCk * */ class Services_VideoUrlParser { const USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7'; const CHECK_URL_VALID = "/(youku\.com|tudou\.com|56\.com|(my\.)?tv\.sohu\.com|v\.qq\.com|youtube\.com)/"; /** * parse * * @param string $url * @static * @access public * @return void */ static public function parse($url = '') { $lowerurl = strtolower($url); if (strstr($lowerurl, '.swf')) { return '

'; } preg_match(self::CHECK_URL_VALID, $lowerurl, $matches); if (!$matches) { return '

'; } if (!$data = AWS_APP::cache()->get('video_parse_' . md5($url))) { switch ($matches[1]) { case 'youku.com' : $data = self::_parseYouku($url); break; case 'tudou.com' : $data = self::_parseTudou($url); break; case '56.com' : $data = self::_parse56($url); break; case 'my.tv.sohu.com' : case 'tv.sohu.com' : case 'sohu.com' : $data = self::_parseSohu($url); break; case 'v.qq.com' : $data = self::_parseQq($url); break; case 'youtube.com' : $data = self::_parseYoutube($url); break; default : return $url; } if ($data) { AWS_APP::cache()->set('video_parse_' . md5($url), $data, 3600, 'video_parser'); } } if ($data) { if ($data['iframe']) { return '

'; } else { return '

'; } } return '

'; } /** * 腾讯视频 * http://v.qq.com/cover/o/o9tab7nuu0q3esh.html?vid=97abu74o4w3_0 * http://v.qq.com/play/97abu74o4w3.html * http://v.qq.com/cover/d/dtdqyd8g7xvoj0o.html * http://v.qq.com/cover/d/dtdqyd8g7xvoj0o/9SfqULsrtSb.html * http://imgcache.qq.com/tencentvideo_v1/player/TencentPlayer.swf?_v=20110829&vid=97abu74o4w3&autoplay=1&list=2&showcfg=1&tpid=23&title=%E7%AC%AC%E4%B8%80%E7%8E%B0%E5%9C%BA&adplay=1&cid=o9tab7nuu0q3esh */ static private function _parseQq($url) { $html = self::_fget($url); preg_match('/vid:"(\w+)"/i', $html, $matches); if (!$vid = $matches[1]) { return false; } preg_match('/

/i', $html, $matches); $data['title'] = $matches[1]; preg_match('/pic :"(.+)"/i', $html, $matches); $data['img'] = $matches[1]; $data['url'] = $url; $data['swf'] = 'http://static.video.qq.com/TPout.swf?vid=' . $vid . '&auto=0'; return $data; } /** * 优酷网 * http://v.youku.com/v_show/id_XMjI4MDM4NDc2.html * http://player.youku.com/player.php/sid/XMjU0NjI2Njg4/v.swf */ static private function _parseYouku($url) { preg_match("#id\_(\w+(?:==)?)#", $url, $matches); if (empty($matches)) { preg_match("#v_playlist\/#", $url, $mat); if (!$mat) { return false; } $html = self::_fget($url); preg_match("#videoId2\s*=\s*\'(\w+)\'#", $html, $matches); if (!$matches) { return false; } } return array( 'url' => $url, 'iframe' => "http://player.youku.com/player.php/sid/{$matches[1]}/v.swf" ); $link = "http://v.youku.com/player/getPlayList/VideoIDS/{$matches[1]}/timezone/+08/version/5/source/out?password=&ran=2513&n=3"; $retval = self::_cget($link); if ($retval) { $json = json_decode($retval, true); $data['img'] = $json['data'][0]['logo']; $data['title'] = $json['data'][0]['title']; $data['url'] = $url; $data['iframe'] = "http://player.youku.com/iframe/{$matches[1]}"; return $data; } else { return false; } } /** * 土豆网 * http://www.tudou.com/programs/view/Wtt3FjiDxEE/ * http://www.tudou.com/v/Wtt3FjiDxEE/v.swf * * http://www.tudou.com/playlist/p/a65718.html?iid=74909603 * http://www.tudou.com/l/G5BzgI4lAb8/&iid=74909603/v.swf */ static private function _parseTudou($url) { $html = self::_fget($url); preg_match('/icode: \'(\w+)\'/i', $html, $matches); $icode = $matches[1]; if (!$icode) return false; preg_match('/kw: \'(.+)\'/i', $html, $matches); $data['title'] = $matches[1]; preg_match('/pic: \'(.+)\'/i', $html, $matches); $data['img'] = $matches[1]; $data['url'] = $url; $data['swf'] = 'http://www.tudou.com/v/' . $icode . '/'; return $data; } /** * 56网 * http://www.56.com/u73/v_NTkzMDcwNDY.html * http://player.56.com/v_NTkzMDcwNDY.swf */ static private function _parse56($url) { preg_match("#/v_(\w+)\.html#", $url, $matches); if (empty($matches)) { return false; } $link = "http://vxml.56.com/json/{$matches[1]}/?src=out"; $retval = self::_cget($link); if ($retval) { $json = json_decode($retval, true); $data['img'] = $json['info']['img']; $data['title'] = $json['info']['Subject']; $data['url'] = $url; $data['swf'] = "http://player.56.com/v_{$matches[1]}.swf"; return $data; } else { return false; } } // 搜狐TV http://my.tv.sohu.com/u/vw/5101536 static private function _parseSohu($url) { $html = iconv('GBK', 'UTF-8', self::_fget($url)); preg_match_all('##i', $html, $matches); $data['img'] = $matches[2][2]; $data['title'] = $matches[2][1]; $data['url'] = $url; $data['swf'] = $matches[2][0]; return $data; } static private function _parseYoutube($url) { preg_match("#\?v=([0-9a-zA-Z_\-]+)#", $url, $matches); if (!$matches[1]) { return false; } //$contents = self::_fget($url); //preg_match_all("#(<span>[</span>^<]+)<\/title>#", $contents, $contentMatches); $data<span>[</span>'img'] = "http://img.youtube.com/vi/{$matches<span>[</span>1]}/0.jpg"; //$data<span>[</span>'title'] = $contentMatches<span>[</span>1]<span>[</span>0]; $data<span>[</span>'url'] = $url; $data<span>[</span>'iframe'] = "http://www.youtube-nocookie.com/iframe/{$matches<span>[</span>1]}"; return $data; } /* * 通过 file_get_contents 获取内容 */ static private function _fget($url = '') { if (!$url) { return false; } $html = self::_vita_get_url_content($url); // 判断是否gzip压缩 if ($dehtml = self::_gzdecode($html)) { return $dehtml; } else { return $html; } } /* * 通过 fsockopen 获取内容 */ static private function _fsget($path = '/', $host = '', $user_agent = '') { if (!$path || !$host) { return false; } $user_agent = $user_agent ? $user_agent : self::USER_AGENT; $out = <<<HEADER GET $path HTTP/1.1 Host: $host User-Agent: $user_agent Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: zh-cn,zh;q=0.5 Accept-Charset: GB2312,utf-8;q=0.7,*;q=0.7\r\n\r\n HEADER; $fp = @fsockopen($host, 80, $errno, $errstr, 10); if (!$fp) return false; if (!fputs($fp, $out)) return false; while (!feof($fp)) { $html .= fgets($fp, 1024); } fclose($fp); // 判断是否gzip压缩 if ($dehtml = self::_gzdecode($html)) return $dehtml; else return $html; } /* * 通过 curl 获取内容 */ static private function _cget($url = '', $user_agent = '') { if (!$url) { return; } $user_agent = $user_agent ? $user_agent : self::USER_AGENT; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 0); if (strlen($user_agent)) curl_setopt($ch, CURLOPT_USERAGENT, $user_agent); ob_start(); curl_exec($ch); $html = ob_get_contents(); ob_end_clean(); if (curl_errno($ch)) { curl_close($ch); return false; } curl_close($ch); if (!is_string($html) || !strlen($html)) { return false; } return $html; // 判断是否gzip压缩 if ($dehtml = self::_gzdecode($html)) return $dehtml; else return $html; } static private function _vita_get_url_content($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); $file_contents = curl_exec($ch); curl_close($ch); return $file_contents; } static private function _gzdecode($data) { $len = strlen($data); if ($len < 18 || strcmp(substr($data, 0, 2), "\x1f\x8b")) { return null; // Not GZIP format (See RFC 1952) } $method = ord(substr($data, 2, 1)); // Compression method $flags = ord(substr($data, 3, 1)); // Flags if ($flags & 31 != $flags) { // Reserved bits are set -- NOT ALLOWED by RFC 1952 return null; } // NOTE: $mtime may be negative (PHP integer limitations) $mtime = unpack("V", substr($data, 4, 4)); $mtime = $mtime<span>[</span>1]; $xfl = substr($data, 8, 1); $os = substr($data, 8, 1); $headerlen = 10; $extralen = 0; $extra = ""; if ($flags & 4) { // 2-byte length prefixed EXTRA data in header if ($len - $headerlen - 2 < 8) { return false; // Invalid format } $extralen = unpack("v", substr($data, 8, 2)); $extralen = $extralen<span>[</span>1]; if ($len - $headerlen - 2 - $extralen < 8) { return false; // Invalid format } $extra = substr($data, 10, $extralen); $headerlen += 2 + $extralen; } $filenamelen = 0; $filename = ""; if ($flags & 8) { // C-style string file NAME data in header if ($len - $headerlen - 1 < 8) { return false; // Invalid format } $filenamelen = strpos(substr($data, 8 + $extralen), chr(0)); if ($filenamelen === false || $len - $headerlen - $filenamelen - 1 < 8) { return false; // Invalid format } $filename = substr($data, $headerlen, $filenamelen); $headerlen += $filenamelen + 1; } $commentlen = 0; $comment = ""; if ($flags & 16) { // C-style string COMMENT data in header if ($len - $headerlen - 1 < 8) { return false; // Invalid format } $commentlen = strpos(substr($data, 8 + $extralen + $filenamelen), chr(0)); if ($commentlen === false || $len - $headerlen - $commentlen - 1 < 8) { return false; // Invalid header format } $comment = substr($data, $headerlen, $commentlen); $headerlen += $commentlen + 1; } $headercrc = ""; if ($flags & 1) { // 2-bytes (lowest order) of CRC32 on header present if ($len - $headerlen - 2 < 8) { return false; // Invalid format } $calccrc = crc32(substr($data, 0, $headerlen)) & 0xffff; $headercrc = unpack("v", substr($data, $headerlen, 2)); $headercrc = $headercrc<span>[</span>1]; if ($headercrc != $calccrc) { return false; // Bad header CRC } $headerlen += 2; } // GZIP FOOTER - These be negative due to PHP's limitations $datacrc = unpack("V", substr($data, -8, 4)); $datacrc = $datacrc<span>[</span>1]; $isize = unpack("V", substr($data, -4)); $isize = $isize<span>[</span>1]; // Perform the decompression: $bodylen = $len - $headerlen - 8; if ($bodylen < 1) { // This should never happen - IMPLEMENTATION BUG! return null; } $body = substr($data, $headerlen, $bodylen); $data = ""; if ($bodylen > 0) { switch ($method) { case 8 : // Currently the only supported compression method: $data = gzinflate($body); break; default : // Unknown compression method return false; } } else { //... } if ($isize != strlen($data) || crc32($data) != $datacrc) { // Bad format! Length or CRC doesn't match! return false; } return $data; } } </pre> </div> <div class="aw-answer-show aw-alpha-hidden" style="display: none"> <span style="cursor: pointer;"><i class="icon-chevrons-down"></i> 阅读全文</span> </div> <div class="aw-answer-hide aw-alpha-hidden mt-3" style="display: none;background:none;position: inherit;height: auto"> <span style="position: unset;float: left;cursor: pointer"><i class="icon-chevrons-up"></i> 收起全文</span> </div> </div> <!--回答操作--> <div class="answer-btn-actions mt-3"> <label class="mr-1"> <a href="javascript:;" class="aw-ajax-agree " onclick="AWS.User.agree(this,'answer','48346');"> <i class="icon-thumb_up"></i> 赞同 <span> 0</span> </a> </label> <label class="mr-3 "> <a href="javascript:;" class="aw-ajax-against " onclick="AWS.User.against(this,'answer','48346');"> <i class="icon-thumb_down"></i> </a> </label> <label class="mr-3"> <a href="javascript:;" class="answerCommentBtn" data-url="/index.php/comment/answer.html?id=48346" data-id="48346"> <i class="icon-chat"></i> <span class="answer-comment-count48346">0</span>评论 </a> </label> <div class="dropdown d-inline-block mr-3"> <a href="javascript:;" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-fw fa-share-alt font-9 d-sm-inline-block"></i> 分享 </a> <div class="dropdown-menu p-0 border-0 font-size-sm"> <div class="text-center d-block py-2" style="min-width: 100px"> <a href="javascript:;" class="dropdown-item aw-clipboard" data-clipboard-text="https://wenda.isimpo.com/index.php/question/31123-48346.html"><i class="icon-link"></i> 复制链接</a> <a href="javascript:;" onclick="AWS.User.share('小改了一下,网站视频手机播放','https://wenda.isimpo.com/index.php/question/31123-48346.html','','weibo')" class="dropdown-item "><i class="fab fa-weibo text-warning"></i> 新浪微博</a> <a href="javascript:;" onclick="AWS.User.share('小改了一下,网站视频手机播放','https://wenda.isimpo.com/index.php/question/31123-48346.html','','qzone')" class="dropdown-item "><i class="fab fa-qq text-primary"></i> 腾讯空间</a> <div class="aw-qrcode-container" data-share="https://wenda.isimpo.com/index.php/question/31123-48346.html"> <a href="javascript:;" class="dropdown-item "><i class="fab fa-weixin text-success"></i> 微信扫一扫</a> <div class="aw-qrcode text-center py-2"></div> </div> </div> </div> </div> <!--问题回答操作栏钩子--> <div class="aw-share clearfix d-inline-block"> <div class="social-share" data-disabled="google,twitter,facebook,linkedin,douban"></div> </div> </div> <!--评论框动态显示--> <div class="answerCommentBox mt-2 border" id="answerCommentBox-48346" style="display: none;margin-left: 45px"> <div class="answerCommentHeader clearfix px-3 pt-3"> <h6 class="font-10 float-left mb-1"><span class="answer-comment-count48346">0</span> 评论</h6> </div> <div class="answerCommentList px-3"></div> <div class="pageElement"></div> <div class="commentForm clearfix rounded aw-replay-box"></div> </div> </div> <div class="aw-answer-item p-3 mb-1 bg-white" data-uninterested_count="0" id="question-answer-48343" data-answer-id="48343"> <div class="user-details-card pt-0 pb-2 position-relative clearfix"> <div class="user-details-card-avatar float-left" style="position: relative"> <a href="/index.php/people/pspsps/" class="aw-username" data-id="27667" title="pspsps"> <img src="/storage/avatar/000/02/76/67_avatar_max.jpg" class="rounded" onerror="this.src='/static/common/image/default-avatar.svg'" alt="pspsps" style="width: 40px;height: 40px"> <img src="/static/common/image/people.svg" width="16" height="16" class="verifiedInfo position-absolute"> </a> </div> <div class="user-details-card-name float-left ml-2"> <a href="/index.php/people/pspsps/" data-id="27667" class="aw-username" title="pspsps">pspsps</a> <span class="badge badge-success">注册会员</span> <span class="ml-2 text-muted font-8">用户来自于: 浙江省杭州市</span> <br><span class="ml-0"> 2017-02-01 14:50 </span> </div> </div> <div class="aw-content"> <div class="aw-answer-content overflow-hidden"> 在 VideoUrlParser.php 里返回的embed改成了 iframe </div> <div class="aw-answer-show aw-alpha-hidden" style="display: none"> <span style="cursor: pointer;"><i class="icon-chevrons-down"></i> 阅读全文</span> </div> <div class="aw-answer-hide aw-alpha-hidden mt-3" style="display: none;background:none;position: inherit;height: auto"> <span style="position: unset;float: left;cursor: pointer"><i class="icon-chevrons-up"></i> 收起全文</span> </div> </div> <!--回答操作--> <div class="answer-btn-actions mt-3"> <label class="mr-1"> <a href="javascript:;" class="aw-ajax-agree " onclick="AWS.User.agree(this,'answer','48343');"> <i class="icon-thumb_up"></i> 赞同 <span> 0</span> </a> </label> <label class="mr-3 "> <a href="javascript:;" class="aw-ajax-against " onclick="AWS.User.against(this,'answer','48343');"> <i class="icon-thumb_down"></i> </a> </label> <label class="mr-3"> <a href="javascript:;" class="answerCommentBtn" data-url="/index.php/comment/answer.html?id=48343" data-id="48343"> <i class="icon-chat"></i> <span class="answer-comment-count48343">0</span>评论 </a> </label> <div class="dropdown d-inline-block mr-3"> <a href="javascript:;" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-fw fa-share-alt font-9 d-sm-inline-block"></i> 分享 </a> <div class="dropdown-menu p-0 border-0 font-size-sm"> <div class="text-center d-block py-2" style="min-width: 100px"> <a href="javascript:;" class="dropdown-item aw-clipboard" data-clipboard-text="https://wenda.isimpo.com/index.php/question/31123-48343.html"><i class="icon-link"></i> 复制链接</a> <a href="javascript:;" onclick="AWS.User.share('小改了一下,网站视频手机播放','https://wenda.isimpo.com/index.php/question/31123-48343.html','','weibo')" class="dropdown-item "><i class="fab fa-weibo text-warning"></i> 新浪微博</a> <a href="javascript:;" onclick="AWS.User.share('小改了一下,网站视频手机播放','https://wenda.isimpo.com/index.php/question/31123-48343.html','','qzone')" class="dropdown-item "><i class="fab fa-qq text-primary"></i> 腾讯空间</a> <div class="aw-qrcode-container" data-share="https://wenda.isimpo.com/index.php/question/31123-48343.html"> <a href="javascript:;" class="dropdown-item "><i class="fab fa-weixin text-success"></i> 微信扫一扫</a> <div class="aw-qrcode text-center py-2"></div> </div> </div> </div> </div> <!--问题回答操作栏钩子--> <div class="aw-share clearfix d-inline-block"> <div class="social-share" data-disabled="google,twitter,facebook,linkedin,douban"></div> </div> </div> <!--评论框动态显示--> <div class="answerCommentBox mt-2 border" id="answerCommentBox-48343" style="display: none;margin-left: 45px"> <div class="answerCommentHeader clearfix px-3 pt-3"> <h6 class="font-10 float-left mb-1"><span class="answer-comment-count48343">0</span> 评论</h6> </div> <div class="answerCommentList px-3"></div> <div class="pageElement"></div> <div class="commentForm clearfix rounded aw-replay-box"></div> </div> </div> </div> </div> </div> <div class="aw-right col-md-3 px-xs-0"> <div class="r-box mb-1"> <div class="r-title"> <h4>关于作者</h4> </div> <div class="block-content"> <dl class="overflow-hidden mb-0 pb-2 border-bottom"> <dt class="float-left"> <a href="/index.php/people/chrischang-22972/" data-pjax="pageMain" class="aw-username" data-id="22972"> <img src="/storage/avatar/000/02/29/72_avatar_max.jpg" class="rounded" width="45" height="45"> </a> </dt> <dd class="float-right" style="width:calc(100% - 55px)"> <a href="/index.php/people/chrischang-22972/" class="d-block aw-one-line aw-username" data-id="22972" target="_blank"> <strong>chrischang</strong> <span class="badge badge-success">注册会员</span> </a> <p class="mb-0 font-8 text-muted aw-one-line">这家伙很懒,还没有设置简介</p> </dd> </dl> <div class="d-flex text-center pt-3 pb-3 text-muted"> <a href="/index.php/people/chrischang-22972/answer" target="_blank" class="flex-fill mb-0"> <dl class="mb-0"> <dt>0</dt> <dd>回答</dd> </dl> </a> <a href="/index.php/people/chrischang-22972/article" target="_blank" class="flex-fill mb-0"> <dl class="mb-0"> <dt>0</dt> <dd>文章</dd> </dl> </a> <a href="/index.php/people/chrischang-22972/question" target="_blank" class="flex-fill mb-0"> <dl class="mb-0"> <dt>2</dt> <dd>问题</dd> </dl> </a> </div> </div> </div> <div class="r-box mb-2"> <div class="r-title"> <h4>问题动态</h4> </div> <div class="block-content2 pb-2"> <div class="text-center text-muted"> <dl class="clearfix mb-1"> <dt class="float-left">发布时间</dt> <dd class="float-right">2017-01-31 20:51</dd> </dl> <dl class="clearfix mb-1"> <dt class="float-left">更新时间</dt> <dd class="float-right">2017-02-03 14:04</dd> </dl> <dl class="clearfix mb-1"> <dt class="float-left">关注人数</dt> <dd class="float-right">7 人关注</dd> </dl> </div> <div> <ul id="questionFocusUsers"> </ul> </div> </div> </div> <div class="r-box mb-2"> <div class="r-title"> <h4>相关问题</h4> </div> <div class="aboutanswer"> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/index.php/question/31353.html">编辑器加入视频无法播放</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">2232 浏览</label> <label class="mr-2 mb-0">2 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/index.php/question/9057.html">测试一下问题的.</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">1845 浏览</label> <label class="mr-2 mb-0">1 关注</label> <label class="mr-2 mb-0">0 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/index.php/question/6705.html">我想了解一下,能不能在dedecms做的门户中调用本程序的内容</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">2530 浏览</label> <label class="mr-2 mb-0">6 关注</label> <label class="mr-2 mb-0">5 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/index.php/question/14540.html">缘创派很多地方wecenter可以借鉴一下如人与人的关系处理、站内信、人个人资料...</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">1612 浏览</label> <label class="mr-2 mb-0">2 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/index.php/question/10443.html">wc也能做出这个网站, 传送门。</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">5274 浏览</label> <label class="mr-2 mb-0">3 关注</label> <label class="mr-2 mb-0">2 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/index.php/question/23766.html">网站源码里面URL地址都是绝对地址,能不能改为相对地址</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">2032 浏览</label> <label class="mr-2 mb-0">2 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/index.php/question/28579.html">想建个网站 找深圳能够兼职开发的</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">1744 浏览</label> <label class="mr-2 mb-0">1 关注</label> <label class="mr-2 mb-0">0 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/index.php/question/28421.html">怎么让手机能播放视频呢,还有缺少音乐播放器</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">2696 浏览</label> <label class="mr-2 mb-0">1 关注</label> <label class="mr-2 mb-0">0 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/index.php/question/14161.html">转:(doume.cn)个人网站、站长的时代已死 请站长节哀</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">2542 浏览</label> <label class="mr-2 mb-0">1 关注</label> <label class="mr-2 mb-0">0 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/index.php/question/4644.html">我感觉问答站做着做着会演变成交流类网站了</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">3452 浏览</label> <label class="mr-2 mb-0">7 关注</label> <label class="mr-2 mb-0">4 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> </div> </div> <div class="r-box mb-2"> <div class="r-title"> <h4>推荐内容</h4> </div> <div class="aboutanswer"> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/index.php/question/32168.html">无法获取GET参数</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">2487 浏览</label> <label class="mr-2 mb-0">3 关注</label> <label class="mr-2 mb-0">2 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/index.php/question/31887.html">哔哩哔哩视频解析!</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">33103 浏览</label> <label class="mr-2 mb-0">0 关注</label> <label class="mr-2 mb-0">0 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/index.php/question/7518.html">video display with http://www.youtube.com ?</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">3825 浏览</label> <label class="mr-2 mb-0">9 关注</label> <label class="mr-2 mb-0">5 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/index.php/question/19630.html">土豆的视频显示:视频解析器当前不支持此站点</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">2689 浏览</label> <label class="mr-2 mb-0">2 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/index.php/question/18814.html">新版能加入插入视频去广告功能吗?</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">3038 浏览</label> <label class="mr-2 mb-0">3 关注</label> <label class="mr-2 mb-0">2 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/index.php/question/18584.html">乐视的视频网页版显示,手机版不显示是什么情况?</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">1436 浏览</label> <label class="mr-2 mb-0">1 关注</label> <label class="mr-2 mb-0">0 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/index.php/question/9158.html">回复里面插入视频支持什么格式和code?我想引入you tube视频。。。但不显示</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">2996 浏览</label> <label class="mr-2 mb-0">2 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">1 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/index.php/question/23732.html">怎么插入视频呀?有代码?</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">2483 浏览</label> <label class="mr-2 mb-0">3 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/index.php/question/11637.html">CKPlayer视频播放器替换wecenter视频播放器 播放自己上传的视频</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">3861 浏览</label> <label class="mr-2 mb-0">5 关注</label> <label class="mr-2 mb-0">3 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/index.php/question/13542.html">2.5 beta4 视频测试</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">1504 浏览</label> <label class="mr-2 mb-0">1 关注</label> <label class="mr-2 mb-0">0 回答</label> <label class="mb-0">1 评论</label> </dd> </dl> </div> </div> </div> </div> </div> </div> </div> <!--全局页面内容底部钩子--> <div class="foot"> <div class="container justify-content-center"> <div class="py-3 footauto clearfix"> <div class="float-left ">All Rights Reserved Powered BY <a class="font-w600" href="https://wenda.wecenter.com" target="_blank">WeCenter V4.1.0</a> © 2024 <a target="_blank" class="ml-3" rel="noopener noreferrer" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=34019202000400">皖公网安备 34019202000400号</a></div> <div class="float-right"> <ul> <li class="d-inline-block mx-1"><a href="/index.php/page/index.html?url_name=about" title="关于我们" target="_blank">关于我们</a></li> <li class="d-inline-block mx-1"><a href="/index.php/page/index.html?url_name=rule" title="社区规范" target="_blank">社区规范</a></li> </ul> </div> </div> </div> </div> <a class="aw-back-top hidden-xs" href="javascript:;" onclick="$.scrollTo(1, 600, {queue:true});"><i class="icon-arrow-up-circle"></i></a> <script> $(function () { let topNavSwiper = new Swiper('.swiper-nav-container', { speed: 600, grabCursor: true, slidesPerView: "auto", initialSlide: 0, slidesPerGroup: 1 }) }) </script> <script> //导航悬浮 var topMain = $(".navbox").height(); $(window).scroll(function(){ if ($(window).scrollTop()>topMain + 200){ $('.navbox').addClass('suspension'); } else { $('.navbox').removeClass('suspension'); } //更换logo if($('.navbox').hasClass('suspension')){ $(".logoimg").attr('src',"/static/common/image/logo.png"); }else( $(".logoimg").attr('src',"https://wenda.isimpo.com/templates/default/static/images/logo-write.png") ) }); </script> <div id="aw-ajax-box"></div> <!--自动加载js文件--> <script src="/templates/default/static/js/question/detail.js"></script> <div id="browserCheck" style="display: none;"> <div class="p-3"> <div class="mb-2"> <p>你的浏览器版本过低,可能导致网站部分内容不能正常使用!</p> <p>为了能正常使用网站功能,请使用以下浏览器</p> </div> <ul class="d-flex text-center"> <li class="flex-fill"> <img src="https://wenda.isimpo.com/static/common/image/icon_Chrome 2x.jpg"> <span class="d-block">Chrome</span> </li> <li class="flex-fill"> <img src="https://wenda.isimpo.com/static/common/image/icon_Firefox 2x.jpg"> <span class="d-block">Firefox</span> </li> <li class="flex-fill"> <img src="https://wenda.isimpo.com/static/common/image/icon_Safari 2x.jpg"> <span class="d-block">Safari</span> </li> <li class="flex-fill"> <img src="https://wenda.isimpo.com/static/common/image/icon_IE 10 2x.jpg"> <span class="d-block">IE 10+</span> </li> </ul> </div> </div> <script> var mb = AWS.common.browser(); if ("IE10" !== mb && "FF" !== mb && "Chrome" !== mb && "Safari" !== mb) { var width =$(window).width() > 600 ? '600px' : '85%'; layer.open({ title: '', type: 1, scrollbar: false, shade: 0.7, area: [width], content: $('#browserCheck').html(), }) } </script> <!--全局自定义底部html--> <script> $(document).ready(function () { $.ajax({ type: 'GET', url: "/index.php/ajax.Question/get_chat_gpt.html?question_id=31123", dataType:'json', success: function (ret) { if(ret.data.html!=='') { $('#chatGpt_answers_list').html(ret.data.html).removeClass('d-none'); } }, error: function (xhr) { let ret = {code: xhr.status, msg: xhr.statusText, data: null}; AWS.events.onAjaxError(ret, error); } }); }) $(document).on('click', '.showAllFocusUsers', function(event) { $.ajax({ type: 'GET', url: "/index.php/ajax/get_question_focus_users.html?question_id=31123", dataType:'json', success: function (ret) { var html=''; $.each(ret.data, function(i,val){ html +='<li class="px-1 d-inline-block"> <a href="'+val.url+'" class="aw-username" data-id="'+val.uid+'" title="'+val.nick_name+'" > <img src="'+val.avatar+'" width="26" height="26" style="border-radius: 50%" alt="'+val.nick_name+'"> </a> </li>'; }); $('#questionFocusUsers').html(html); }, error: function (xhr) { let ret = {code: xhr.status, msg: xhr.statusText, data: null}; AWS.events.onAjaxError(ret, error); } }); }) $(document).on('click', '#load_force_fold_answers a', function(event) { if($('#force_fold_answers_list').hasClass('d-none')) { $.ajax({ type: 'GET', url: "/index.php/ajax.Question/force_fold_answers.html?question_id=31123", dataType:'json', success: function (ret) { $('#force_fold_answers_list').html(ret.data.html).removeClass('d-none'); }, error: function (xhr) { let ret = {code: xhr.status, msg: xhr.statusText, data: null}; AWS.events.onAjaxError(ret, error); } }); }else{ $('#force_fold_answers_list').html('').addClass('d-none'); } }) $(document).ready(function () { var openEnable="Y"; var answerId = parseInt("0"); var showAll = $('#show-all'); if(openEnable==='Y') { $('.aw-question-show').click(); $('.aw-answer-show').click(); if(showAll.height() >= 120) { $('.aw-question-hide').show(); } }else{ if(showAll.height() >= 120) { showAll.show().css('height','120px'); $('.aw-question-show').show(); } } $(document).on('click', '.aw-question-show', function (e) { $('.aw-question-show').hide(); showAll.show().css('height','auto'); $('.aw-question-hide').show(); }); $(document).on('click', '.aw-question-hide', function (e) { $('.aw-question-hide').hide(); showAll.show().css('height','120px'); $('.aw-question-show').show(); }); $('.aw-answer-item .aw-answer-content').each(function(){ if($(this).height() >= 200) { if(openEnable==='Y') { $(this).css('height','auto'); $(this).parents('.aw-answer-item').find('.aw-answer-hide').show(); }else{ if(answerId) { $(this).css('height','auto'); $(this).parents('.aw-answer-item').find('.aw-answer-hide').show(); }else{ $(this).css('height','200px'); $(this).parents('.aw-answer-item').find('.aw-answer-show').show(); } } } }); $(document).on('click', '.aw-answer-show', function (e) { $(this).hide(); $(this).parents('.aw-answer-item').find('.aw-answer-content').show().css('height','auto'); $(this).parents('.aw-answer-item').find('.aw-answer-hide').show(); }); $(document).on('click', '.aw-answer-hide', function (e) { $(this).hide(); $(this).parents('.aw-answer-item').find('.aw-answer-content').show().css('height','200px'); $(this).parents('.aw-answer-item').find('.aw-answer-show').show(); }); }); </script> <form id="attach-download-form" action="/index.php/upload/download.html" method="post"> <input type="hidden" id="attach-name" name="name" value=""> <input type="hidden" id="attachType" name="type" value="0"> </form> </body> </html>