乐于分享
好东西不私藏

uniapp:视频video,记录播放进度

uniapp:视频video,记录播放进度

需求

  • 播放暂停视频
  • 不允许快进,可以后退
  • 视频后退不会影响最高观看时长,例如看了10分钟,后退5分钟,观看时长依然是600秒
  • 监听退出记录观看时间,下次进来接着看
  • 视频看完积分
  • 自定义视频是否有倍速

uniapp原生组件video 没有倍速

<template>    <view>        <!-- id:唯一标识,@timeupdate进度条变化的事件,@ended进度条到最后的事件,initial-time指定视频初始播放位置, -->        <videoid="myVideo"style="width: 100%;" @timeupdate="timeUpdate" @ended="ended":initial-time="initialTime"                :src="course.videos" :poster="course.img">        </video>    </view></template><script>    export default {        data() {            return {                initialTime0//初始播放位置                duration0// 视频时长                videoContext''// 用来存储video对象                watchTime0// 实际观看时间                videoRealTime0// 实时播放进度                course: {                    videos"https://img.cdn.aliyun.dcloud.net.cn/guide/uniapp/%E7%AC%AC1%E8%AE%B2%EF%BC%88uni-app%E4%BA%A7%E5%93%81%E4%BB%8B%E7%BB%8D%EF%BC%89-%20DCloud%E5%AE%98%E6%96%B9%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B@20181126-lite.m4v",                    img'https://cdn.uviewui.com/uview/swiper/swiper1.png'                }            };        },        onLoad(options) {            uni.setNavigationBarTitle({                title: options.id            })            // 调用接口取到该用户上次播放的位置(秒)             this.watchTime = 67            this.initialTime = 67        },        onReady() {            // 视频唯一ID             this.videoContext = uni.createVideoContext('myVideo')        },        methods: {            // 监听进度条变化:禁止拖动 e.detail = {currentTime, duration} 。触发频率 250ms 一次            timeUpdate(e) {                //视频时长                this.duration = parseInt(e.detail.duration)                // 记录用户当前视频进度                var jumpTime = parseInt(e.detail.currentTime)                // 判断用户当前视频进度比实际观看时间差别,这里只判断了用户快进                if (jumpTime - this.watchTime > 1) {                    // 差别过大,调用seek方法跳转到实际观看时间                    this.videoContext.seek(this.watchTime)                } else {                    this.videoRealTime = parseInt(e.detail.currentTime)                    if (this.videoRealTime > this.watchTime) {                        this.watchTime = this.videoRealTime                    }                }            },            ended() {                // 用户把进度条拉到最后,但是实际观看时间不够,跳转回去会自动暂停                if (this.watchTime < this.duration) {                    this.videoContext.play()                } else {                    console.log('看完了')                }            },            // 监听返回:监听不了ios的左滑返回,目前的采用的解决方案是在onLoad设置禁用左滑            // onLoad(option) {            //  // 单页禁止测滑返回            //  // #ifdef APP-PLUS            //  let currentWebview = this.$mp.page.$getAppWebview() //获取当前页面的webview对象            //  currentWebview.setStyle({            //      popGesture: 'none'            //  })            //  // #endif            // }            // 监听返回,记录视频的观看时长            onBackPress(e) {                //backbutton 是点击物理按键返回,navigateBack是uniapp中的返回(比如左上角的返回箭头)                console.log('返回', e, this.watchTimethis.duration);            },        },    }</script> 
使用插件 x-video 视频播放:https://ext.dcloud.net.cn/plugin?id=10979

修改组件 实现不能往前拉的功能

<template>    <divclass="video-wrap":style="{ width: `${width}`, height: `${height}` }">        <!-- video player -->        <view @click="handleControls">            <videoclass="video-player":id="videoId":style="{ width: `${width}`, height: `${height}` }"                webkit-playsinline="true" playsinline="true" x-webkit-airplay="allow" x5-video-player-type="h5-page"                x5-video-orientation="portrait" :src="src" :initial-time="initialTime" :controls="isFullScreen"                :show-center-play-btn="false" :autoplay="autoplay" :muted="isMute" :poster="poster" @play="videoPlay"                @pause="videoPause" @ended="videoEnded" @timeupdate="videoTimeUp" @loadedmetadata="videoLoaded"                @seeked="videoSeeked" @seeking="videoSeeking" @waiting="videoWaiting" @error="videoError"                @fullscreenchange="onFullScreen"></video>        </view>        <viewclass="abs-center">            <!-- 中心播放按钮 -->            <imagesrc="../../static/play-btn.png"mode=""class="play-btn"v-if="!isVideoPlay && !showLoading"                @click="videoPlayCenter"></image>            <!--  加载中 -->            <divclass="video-loading"v-if="showLoading">                <imagesrc="../../static/loading.png"mode=""class="loading-btn"></image>            </div>        </view>        <!-- 控制条 -->        <view:class="['controls-bar', controls ? 'show' : 'hide']">            <!-- 播放 -->            <viewclass="play-box" @click="videoPlayClick">                <imagesrc="../../static/pause.png"mode=""class="play-icon"v-if="isVideoPlay"></image>                <imagesrc="../../static/play.png"mode=""class="play-icon"v-else></image>            </view>            <!-- 声音 -->            <viewclass="mute-box" @click="videoMuteClick">                <imagesrc="../../static/sound.png"mode=""class="mute-icon"v-if="!isMute"></image>                <imagesrc="../../static/mute.png"mode=""class="mute-icon"v-else></image>            </view>            <!-- 进度 -->            <viewclass="progress">                <viewclass="currtime">{{ currentTimeStr }}</view>                <viewclass="slider-container">                    <slider @change="sliderChange" @changing="sliderChanging":step="step":value="sliderValue"                        backgroundColor="#9f9587" activeColor="#d6d2cc" block-color="#FFFFFF" block-size="12" />                </view>                <viewclass="druationTime">{{ druationTimeStr }}</view>            </view>            <!-- 倍速 -->            <viewclass="play-rate" @click="videoPlayRate"v-if="showRate">{{ playbackRate }}x</view>            <!-- 全屏 -->            <viewclass="play-full" @click="videoFull">                <imagesrc="../../static/fullscreen.png"mode=""class="play-icon" @click="videoFull"></image>            </view>            <!-- 倍速菜单 -->            <ulclass="play-rate-menu":style="{ height: height }"v-if="showRateMenu">                <liv-for="item in playbackRates":key="item":class="[{ activeRate: playbackRate === item }, 'play-rate-item']"                    @click="changePlayRate(item)">                    {{ item }}x                </li>            </ul>        </view>    </div></template><script>    export default {        name'XVideo',        props: {            // 视频地址            videoId: {                typeString,                default'myVideo'            },            // 视频地址            src: {                typeString            },            // 自动播放            autoplay: {                typeBoolean,                defaulttrue            },            // 封面            poster: {                typeString            },            // 步长,表示占比,取值必须大于0且为整数            step: {                typeNumber,                default1            },            // 初始播放进度,表示占比            progress: {                typeNumber            },            // 视频宽度            width: {                typeString,                default'100%'            },            // 视频高度            height: {                typeString,                default'484rpx'            },            // 播放错误提示            errorTip: {                typeString,                default'播放错误'            },            // 是否展示倍速            showRate: {                typeBoolean,                defaulttrue            },            // 播放速率            playbackRates: {                typeArray,                default() => [0.50.811.251.52]            }        },        data() {            return {                controlsfalse//显示播放控件                isVideoPlayfalse// 是否正在播放                isMutefalse// 是否静音                isVideoEndfalse// 是否播放结束                showPostertrue// 是否显示视屏封面                showLoadingfalse// 加载中                durationTime0//总播放时间 时间戳                currentTime0//当前播放时间 时间戳                watchTime0//实际最高播放时间 时间戳                druationTimeStr'00:00'//总播放时间 字符串 计算后                currentTimeStr'00:00'//当前播放时间 字符串 计算后                sliderValue0//进度条的值 百分比                isSeekedtrue//防止进度条拖拽失效                playbackRate1// 初始播放速率                showRateMenufalse//显示播放速率                initialTime0//初始播放时间                isFullScreenfalse//是否全屏                windowWidth0 //屏幕宽度            }        },        mounted() {            this.videoPlayer = uni.createVideoContext(this.videoIdthis)            // #ifdef H5            // 处理微信不能自动播放            if (this.autoplay) {                document.addEventListener(                    'WeixinJSBridgeReady',                    () => {                        this.videoPlayer.play()                        this.isVideoPlay = true                    },                    false                )            }            // #endif        },        onHide() {            clearTimeout(this.timer)        },        methods: {            // 自动隐藏控制条            hideControls() {                this.timer = setTimeout(() => {                    this.controls = false                }, 5000)            },            // 点击显示/隐藏控制条            handleControls() {                this.controls = !this.controls            },            // 根据秒获取时间            formatSeconds(second) {                second = Math.round(second)                var hh = parseInt(second / 3600)                var mm = parseInt((second - hh * 3600) / 60)                if (mm < 10) mm = '0' + mm                var ss = parseInt((second - hh * 3600) % 60)                if (ss < 10) ss = '0' + ss                if (hh < 10) hh = hh == 0 ? '' : `0${hh}:`                var length = hh + mm + ':' + ss                if (second > 0) {                    return length                } else {                    return '00:00'                }            },            // 缓冲            videoWaiting(e) {                // 没有缓冲结束事件,所以在不播放的情况触发loading                if (!this.isVideoPlaythis.showLoading = true            },            // 视频信息加载完成            videoLoaded(e) {                // console.log(e.detail.duration, this.progress)                this.durationTime = e.detail.duration                this.druationTimeStr = this.formatSeconds(this.durationTime)                this.initialTime = this.progress                this.watchTime = this.progress                this.currentTime = this.progress                this.sliderValue = this.progress * 100 / this.durationTime                this.videoPlayer.seek(this.initialTime)                this.currentTimeStr = this.formatSeconds(this.initialTime)                this.controls = true                this.showLoading = false                this.$emit('loadeddata'this.durationTimethis.videoPlayer)            },            // 播放进度更新,触发频率 250ms 一次            // videoTimeUp(e) {            //  console.log(this.initialTime,this.currentTime,this.watchTime)            //  // 记录用户当前视频进度            //  var jumpTime = parseInt(e.detail.currentTime)            //  // 判断用户当前视频进度比实际观看时间差别,这里只判断了用户快进            //  if (jumpTime - this.currentTime > 1) {            //      // 差别过大,调用seek方法跳转到实际观看时间            //      this.videoPlayer.seek(this.currentTime)            //      this.currentTimeStr = this.formatSeconds(this.currentTime)            //  } else if (jumpTime - this.currentTime < -1) {            //      let sliderValue = Math.round((e.detail.currentTime / this.durationTime) * 100)            //      if (this.isSeeked) {            //          //判断拖拽完成后才触发更新,避免拖拽失效            //          if (sliderValue % this.step === 0)            //              // 比例值能被步进值整除            //              this.sliderValue = sliderValue            //      }            //      this.currentTimeStr = this.formatSeconds(e.detail.currentTime)            //      this.$emit('timeupdate', e)            //  } else {            //      let sliderValue = Math.round((e.detail.currentTime / this.durationTime) * 100)            //      if (this.isSeeked) {            //          //判断拖拽完成后才触发更新,避免拖拽失效            //          if (sliderValue % this.step === 0)            //              // 比例值能被步进值整除            //              this.sliderValue = sliderValue            //      }            //      this.currentTimeStr = this.formatSeconds(e.detail.currentTime)            //      this.currentTime = e.detail.currentTime            //      this.watchTime = e.detail.currentTime            //      this.$emit('timeupdate', e)            //  }            // },            videoTimeUp(e) {                // console.log(this.initialTime, this.currentTime, this.watchTime)                // 记录用户当前视频进度                var jumpTime = e.detail.currentTime                // 判断用户当前视频进度比实际观看时间差别,这里只判断了用户快进                if (jumpTime - this.watchTime > 1) {                    // 差别过大,调用seek方法跳转到实际观看时间                    this.videoPlayer.seek(this.watchTime)                    // this.currentTimeStr = this.formatSeconds(this.currentTime)                } else {                    this.currentTime = e.detail.currentTime                    let sliderValue = Math.round((e.detail.currentTime / this.durationTime) * 100)                    if (this.isSeeked) {                        //判断拖拽完成后才触发更新,避免拖拽失效                        if (sliderValue % this.step === 0)                            // 比例值能被步进值整除                            this.sliderValue = sliderValue                    }                    this.currentTimeStr = this.formatSeconds(e.detail.currentTime)                    if (this.currentTime > this.watchTime) {                        this.watchTime = this.currentTime                    }                    this.$emit('timeupdate'this.watchTime)                }            },            //正在拖动slider            sliderChanging(e) {                console.log(2, e.detail.value)                this.isSeeked = false // 拖拽过程中,不允许更新进度条                this.showLoading = true                this.videoPlayer.pause()                this.$emit('seeking')            },            // 拖动slider完成后            sliderChange(e) {                console.log(1, e.detail.valuethis.durationTime, (e.detail.value / 100) * this.durationTime)                this.sliderValue = e.detail.value                let currentTime = (this.sliderValue / 100) * this.durationTime                this.showLoading = false                this.isSeeked = true // 完成拖动后允许更新滚动条                this.videoPlayer.seek(currentTime)                if (this.sliderValue < 100) {                    this.videoPlayer.play()                } else {                    this.videoPlayer.pause()                    this.videoEnded()                }                this.hideControls()                this.$emit('seeked'this.sliderValue)            },            // 点击中心播放            videoPlayCenter() {                this.videoPlayer.play()                this.$emit('play')            },            // 点击左下角播放/暂停,会触发原始播放/暂停事件,分开写,防止重复触发            videoPlayClick() {                if (this.isVideoPlay) {                    this.videoPlayer.pause()                } else {                    this.videoPlayer.play()                    this.$emit('play')                }            },            // 原始播放            videoPlay() {                if (this.pauseTimer) {                    clearTimeout(this.pauseTimer)                }                this.isVideoPlay = true                this.isVideoEnd = false                this.showLoading = false                this.hideControls()            },            // 原始暂停            videoPause() {                // 处理播放结束和拖动会先触发暂停的问题                this.pauseTimer = setTimeout(() => {                    if (this.isVideoEndreturn                    if (!this.isSeekedreturn                    this.isVideoPlay = false                    this.$emit('pause')                }, 100)            },            // 静音            videoMuteClick() {                this.isMute = !this.isMute            },            // 播放结束            videoEnded() {                // 重置状态                this.isVideoPlay = false                this.showPoster = true                this.isVideoEnd = true                this.$emit('ended')            },            // 播放错误            videoError(e) {                // uni.showToast({                //  title: this.errorTip,                //  icon: 'none'                // })                this.$emit('error')            },            // 显示倍速            videoPlayRate() {                this.showRateMenu = true            },            // 点击倍速            changePlayRate(rate) {                this.playbackRate = rate                this.videoPlayer.playbackRate(rate)                this.showRateMenu = false                this.hideControls()            },            // 创建倍速按钮            createPlayRateDOM() {                const playRateDom = document.createElement('div')                playRateDom.className = 'full-play-rate'                playRateDom.innerText = `${this.playbackRate}x`                playRateDom.onclick = () => {                    const playRateMenuDom = document.querySelector('.full-play-rate-menu')                    playRateMenuDom.style.display = 'block'                }                return playRateDom            },            // 创建倍速菜单            createPlayRateMenuDom() {                const playRateMenuDom = document.createElement('ul')                playRateMenuDom.className = `play-rate-menu full-play-rate-menu`                playRateMenuDom.style.height = this.windowWidth + 'px'                playRateMenuDom.style.display = 'none'                let liStr = ''                this.playbackRates.forEach((item) => {                    liStr += `                    <li class="${this.playbackRate === item ? 'activeRate' : ''} play-rate-item full-play-rate-item">                        ${item}x                    </li>                     `                })                playRateMenuDom.innerHTML = liStr                return playRateMenuDom            },            // 处理全屏倍速功能            videoFullRate() {                this.windowWidth = uni.getSystemInfoSync().windowWidth                const fullScreen = document.querySelector('.uni-video-fullscreen')                // 添加倍速菜单                const playRateMenuDom = document.querySelector('.full-play-rate-menu')                const videoContainer = document.querySelector('.uni-video-container')                if (!playRateMenuDom) {                    videoContainer.appendChild(this.createPlayRateMenuDom())                    const lis = document.querySelectorAll('.full-play-rate-item')                    lis.forEach((item) => {                        item.style.lineHeight = this.windowWidth / this.playbackRates.length + 'px'                        item.onclick = () => {                            let rate = +item.innerText.slice(0, -1)                            this.playbackRate = rate                            this.videoPlayer.playbackRate(rate)                            lis.forEach((li) => {                                li.classList.remove('activeRate')                                let rate = +li.innerText.slice(0, -1)                                if (this.playbackRate === rate) {                                    li.classList.add('activeRate')                                }                            })                            const playRateMenuDom = document.querySelector('.full-play-rate-menu')                            playRateMenuDom.style.display = 'none'                            const playRateDom = document.querySelector('.full-play-rate')                            playRateDom.innerText = `${this.playbackRate}x`                        }                    })                }                // 添加倍速按钮                const playRateDom = document.querySelector('.full-play-rate')                if (!playRateDom) {                    fullScreen.parentNode.insertBefore(this.createPlayRateDOM(), fullScreen)                }            },            // 点击全屏            videoFull() {                this.videoPlayer.requestFullScreen()                // #ifdef H5                if (this.showRate) {                    this.videoFullRate()                }                // #endif            },            // 监听原生全屏事件            onFullScreen({                detail            }) {                if (detail.fullScreen) {                    this.isFullScreen = true                } else {                    this.isFullScreen = false                    // #ifdef H5                    const playRateMenuDom = document.querySelector('.full-play-rate-menu')                    playRateMenuDom.style.display = 'none'                    // #endif                }            }        }    }</script><stylelang="scss"scoped>    /deep/ .uni-video-fullscreen {        margin-left30px    }    .show {        opacity1 !important;    }    .hide {        opacity0 !important;        pointer-events: none;    }    .abs-center {        position: absolute;        top50%;        left50%;        transformtranslate(-50%, -50%);    }    ::v-deep .full-play-rate {        color#cbcbcb;        font-size32rpx;        margin-left24rpx;        margin-right24rpx;    }    ::v-deep .full-play-rate-menu {        position: fixed !important;    }    ::v-deep .play-rate-menu {        list-style-type: none;        background-colorrgba(0000.7);        width24%;        position: absolute;        right0;        bottom0;        padding-left0;        box-sizing: border-box;    }    ::v-deep .play-rate-item {        line-height70rpx;        font-size28rpx;        text-align: center;        color#fff;    }    ::v-deep .activeRate {        color#5785e3;    }    .video-wrap {        position: relative;        .play-btn {            width120rpx;            height120rpx;        }        @keyframes run {            from {                transformrotate(0deg);            }            to {                transformrotate(360deg);            }        }        .loading-btn {            width120rpx;            height120rpx;            animation: run 0.8s linear 0s infinite;        }        .controls-bar {            width100%;            padding1% 1% 1% 0;            position: absolute;            bottom0;            left0;            right0;            z-index99;            display: flex;            align-items: center;            backgroundrgba(5957570.7);            color#fff;            opacity1;            transition: opacity 1s;            height84rpx;            .play-box,            .mute-box,            .play-full {                width84rpx;                height100%;                display: flex;                align-items: center;                justify-content: center;            }            .mute-icon {                width40rpx;                height40rpx;            }            .play-icon {                width34rpx;                height34rpx;            }            .progress {                display: flex;                align-items: center;                flex1;                font-size24rpx;                margin-left16rpx;                .slider-container {                    flex1;                    max-width58%;                }                .currtime {                    color#ffffff;                    width11%;                    height100%;                    text-align: center;                    margin-right20rpx;                }                .druationTime {                    color#ffffff;                    width12%;                    height100%;                    text-align: center;                }            }            .play-rate {                font-size32rpx;                margin-right24rpx;            }            .play-rate-menu {                padding-top26rpx;            }            .play-rate-item:first-child {                margin-top30rpx;            }        }    }</style>
基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-04-10 09:44:59 HTTP/1.1 GET : https://www.yeyulingfeng.com/a/505306.html
  2. 运行时间 : 0.124689s [ 吞吐率:8.02req/s ] 内存消耗:4,797.38kb 文件加载:145
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=9a6b4f0313d0818dea7611d5d6290cfa
  1. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/autoload_static.php ( 6.05 KB )
  7. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/ralouphie/getallheaders/src/getallheaders.php ( 1.60 KB )
  10. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  11. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  12. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  13. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  14. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  15. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  16. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  17. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  18. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  19. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/guzzlehttp/guzzle/src/functions_include.php ( 0.16 KB )
  21. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/guzzlehttp/guzzle/src/functions.php ( 5.54 KB )
  22. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  23. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  24. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  25. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/provider.php ( 0.19 KB )
  26. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  27. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  28. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  29. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/common.php ( 0.03 KB )
  30. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  32. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/alipay.php ( 3.59 KB )
  33. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  34. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/app.php ( 0.95 KB )
  35. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/cache.php ( 0.78 KB )
  36. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/console.php ( 0.23 KB )
  37. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/cookie.php ( 0.56 KB )
  38. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/database.php ( 2.48 KB )
  39. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/filesystem.php ( 0.61 KB )
  40. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/lang.php ( 0.91 KB )
  41. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/log.php ( 1.35 KB )
  42. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/middleware.php ( 0.19 KB )
  43. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/route.php ( 1.89 KB )
  44. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/session.php ( 0.57 KB )
  45. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/trace.php ( 0.34 KB )
  46. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/view.php ( 0.82 KB )
  47. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/event.php ( 0.25 KB )
  48. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  49. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/service.php ( 0.13 KB )
  50. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/AppService.php ( 0.26 KB )
  51. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  52. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  53. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  54. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  55. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  56. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/services.php ( 0.14 KB )
  57. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  58. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  59. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  60. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  61. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  62. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  63. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  64. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  65. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  66. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  67. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  68. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  69. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  70. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  71. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  72. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  73. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  74. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  75. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  76. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  77. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  78. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  79. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  80. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  81. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  82. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  83. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  84. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  85. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  86. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  87. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/Request.php ( 0.09 KB )
  88. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  89. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/middleware.php ( 0.25 KB )
  90. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  91. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  92. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  93. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  94. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  95. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  96. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  97. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  98. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  99. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  100. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  101. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  102. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  103. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/route/app.php ( 3.94 KB )
  104. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  105. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  106. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/controller/Index.php ( 9.87 KB )
  108. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/BaseController.php ( 2.05 KB )
  109. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  110. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  111. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  112. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  113. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  114. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  115. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  116. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  117. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  118. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  119. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  120. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  121. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  122. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  123. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  124. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  125. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  126. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  127. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  128. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  129. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  130. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  131. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  132. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  133. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  134. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  135. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/controller/Es.php ( 3.30 KB )
  136. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  137. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  138. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  139. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  140. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  141. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  142. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  143. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  144. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/runtime/temp/c935550e3e8a3a4c27dd94e439343fdf.php ( 31.80 KB )
  145. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000581s ] mysql:host=127.0.0.1;port=3306;dbname=wenku;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000769s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000342s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000285s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000520s ]
  6. SELECT * FROM `set` [ RunTime:0.000198s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000613s ]
  8. SELECT * FROM `article` WHERE `id` = 505306 LIMIT 1 [ RunTime:0.000574s ]
  9. UPDATE `article` SET `lasttime` = 1775785500 WHERE `id` = 505306 [ RunTime:0.007123s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 64 LIMIT 1 [ RunTime:0.000424s ]
  11. SELECT * FROM `article` WHERE `id` < 505306 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000524s ]
  12. SELECT * FROM `article` WHERE `id` > 505306 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000438s ]
  13. SELECT * FROM `article` WHERE `id` < 505306 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.001318s ]
  14. SELECT * FROM `article` WHERE `id` < 505306 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.021873s ]
  15. SELECT * FROM `article` WHERE `id` < 505306 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.014488s ]
0.126498s