{include file="public/header" /}
<body>
<style>.layui-colla-content img{width:100%;}</style>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
		<div class="layui-col-md6">
			<div class="layui-card">	
			<div class="layui-card-header"><i class="fa fa-fire icon"></i>版本信息</div>
			<div class="layui-card-body layui-text">
			<table class="layui-table" >
				<tbody>					
				<tr>
					<td width="130">运行环境</td>
					<td><?php echo PHP_OS ?> (<?php echo $_SERVER['SERVER_SOFTWARE'] ?>)</td>
				</tr>
				<tr>
					<td>服务器IP/端口</td>
					<td><?php echo $_SERVER['HTTP_HOST'] ?></td>
				</tr>
				<tr>
					<td>PHP版本</td>
					<td><?php echo PHP_VERSION ?></td>
				</tr>
				<tr>
					<td>ThinkPHP版本</td>
					<td><?php echo THINK_VERSION; ?></td>
				</tr>
				<tr>
					<td>最大上传限制</td>
					<td><?php echo get_cfg_var("file_uploads") ? get_cfg_var("upload_max_filesize") : $error;?></td>
				</tr>
				<tr>
					<td>服务器时间</td>
					<td id="timedate"><?php echo date('Y-m-d H:i:s'); ?></td>
				</tr>
				<tr>
					<td>当前程序版本：</td>
					<td><span class="layui-badge">{$version.code}</span></td>
				</tr>
				</tbody>
			</table>
			</div></div>
		</div>
		<div class="layui-col-md6">
			<div class="layui-card">	
			<div class="layui-card-header"><i class="fa fa-bullhorn icon icon-tip"></i>常见问题</div>
				<div class="layui-card-body layui-text">
				<table class="layui-table" >
					<tbody>	
					<tr>
						<td><a href="https://docs.maopan.vip/docs/maopandoc/maopandoc-1e75332osrdcp" target="_blank">《一键发布》功能使用教程</a></td>
					</tr>
					<tr>
						<td><a href="https://docs.maopan.vip/docs/maopandoc/maopandoc-1e75344al3fis" target="_blank">《生成m3u8链接》功能使用教程</a></td>
					</tr>
					<tr>
						<td><a href="https://docs.maopan.vip/docs/maopandoc/maopandoc-1eq8agi3rjm86" target="_blank">《定时发布任务》使用教程</a></td>
					</tr>
					<tr>
						<td><a href="https://docs.maopan.vip/docs/maopandoc/maopandoc-1eba8tlur32cn" target="_blank">视频外链如何在苹果cms程序中播放？</a></td>
					</tr>
					<tr>
						<td><a href="https://docs.maopan.vip/docs/maopandoc/maopandoc-1ec4vqkub7rq6" target="_blank">视频有声音无画面、或有画面无声音？</a></td>
					</tr>
					<tr>
						<td><a href="https://docs.maopan.vip/docs/maopandoc/maopandoc-1ejuunjn9k928" target="_blank">如何使用json格式输出网盘解析地址？</a></td>
					</tr>
					<tr>
						<td><a href="https://docs.maopan.vip/docs/maopandoc/maopandoc-1ell8vkn6jc39" target="_blank">m3u8链接无法播放？</a></td>
					</tr>
					</tbody>
				</table>
                </div>
			</div>
		</div>
		<div class="layui-col-md12">
			<div class="layui-card">	
			<div class="layui-card-header"><i class="fa fa-fire icon"></i>更新日志</div>
			<div class="layui-card-body layui-text">
				<ul class="layui-timeline">
					<li class="layui-timeline-item">
						<i class="layui-icon layui-timeline-axis">&#xe63f;</i>
						<div class="layui-timeline-content layui-text">
							<h3 class="layui-timeline-title">2024.10.04 v3.1.3</h3>
							<p>1、播放器设置增加自定义倍数</p>
							<p>2、播放器设置增加json解析接口</p>
							<p>3、一键发布“播放编码”可下拉选择</p>
							<p>4、修复天翼云盘</p>
							<p>5、修复移动云盘</p>
							<p>5、修复其他已知</p>
						</div>
					</li>
					<li class="layui-timeline-item">
						<i class="layui-icon layui-timeline-axis">&#xe63f;</i>
						<div class="layui-timeline-content layui-text">
							<h3 class="layui-timeline-title">2024.06.10 v3.1.2</h3>
							<p>1、代码优化</p>
						</div>
					</li>
					<li class="layui-timeline-item">
						<i class="layui-icon layui-timeline-axis">&#xe63f;</i>
						<div class="layui-timeline-content layui-text">
							<h3 class="layui-timeline-title">2024.06.09 v3.1.1</h3>
							<p>1、修复移动云盘登录错误</p>
							<p>2、紧急修复一处API错误</p>
						</div>
					</li>
					<li class="layui-timeline-item">
						<i class="layui-icon layui-timeline-axis">&#xe63f;</i>
						<div class="layui-timeline-content layui-text">
							<h3 class="layui-timeline-title">2023.12.23 v3.1.0</h3>
							<p>1、修改数据库编码方式，避免链接带特殊字符报错</p>
							<p>2、优化剧集类视频m3u8批量生成和发布</p>
							<p>3、优化自定义豆瓣接口规则，适配更多接口</p>
							<p>4、一键发布影片名称优先级选择设置</p>
							<p>5、优化播放器右键，屏蔽播放地址</p>
							<p>6、缩短alist文件直链，避免链接过长无法一键发布入库</p>
							<p>7、修复一些已知问题</p>
						</div>
					</li>
					<li class="layui-timeline-item">
						<i class="layui-icon layui-timeline-axis">&#xe63f;</i>
						<div class="layui-timeline-content layui-text">
							<h3 class="layui-timeline-title">2023.11.28 v3.0.0</h3>
							<p>1、增加播放器加载中loading设置</p>
							<p>2、增加播放器弹幕参数自定义设置</p>
							<p>3、修复php7.4加载弹幕数据接口报错问题</p>
							<p>4、修复自定义豆瓣API接口适配规则</p>
							<p>5、解决部分字幕编码非UTF8导致不显示的问题</p>
							<p>6、优化字幕选择和选集规则</p>
							<p>7、一键发布增加批量修改影片名称 <i class="fa fa-question-circle-o help-tips-icon layui-hide-xs" title="查看帮助" data-href="https://docs.maopan.vip/docs/maopandoc/maopandoc-1e75332osrdcp#6ddf1y"></i></p>
							<p>8、增加json接口 <i class="fa fa-question-circle-o help-tips-icon layui-hide-xs" title="查看帮助" data-href="https://docs.maopan.vip/docs/maopandoc/maopandoc-1ejuunjn9k928"></i></p>
						</div>
					</li>
					
				</ul>
			</div>
			</div>
			</div>
		</div>
		
	</div>
</div>
</div>
{include file="public/footer" /}
<script>
layui.use(['jquery', 'layer'], function () {
	var $ = layui.$
        , layer = layui.layer;
	var version = '{$version.code}';
	var localTest = layui.sessionData('check_update');
	var now_time = Math.round(new Date() / 1000);
	if(!localTest['time'] || localTest['time'] < now_time){
		layui.sessionData('check_update', {key: 'time',value: (now_time+3600)});
		$.ajax({
			url:'https://www.maopan.vip/api/?type=check_update&domain=' + window.location.host,
			dataType:'json',
			timeout: 10000, 
			success:function (res) {
				if(res.code==1){
					if(version!==res.data.version){
						parent.layer.alert('当前程序版本：'+version+'<br>最新程序版本：'+res.data.version+'<br>请保持最新版本，否则可能有BUG<br>若在线升级失败，请选择手动升级',{btn:['立即升级','手动升级'],closeBtn:0,yes: function(index, layero){
							var index = parent.layer.msg('升级中,请稍后....',{icon:16,time:30000,shade:0.5});
							$.post('{:url("index/update")}',{
								url: res.data.url
							},function (r) {
								parent.layer.alert(r.msg,function () {
									$.get('./clear.html',function () {
										parent.location.reload();
									});
								});
							});
						}
						,btn2: function(index, layero){
							layero.find('.layui-layer-btn1').attr({
								href: 'https://docs.maopan.vip/docs/maopandoc/maopandoc-1eq8o6bp2co48',
								target: '_blank'
							});
						}});
					}
				}
			}
		});
	}	
});

</script>	
</body>
</html>