整合前端代码

This commit is contained in:
Alone
2024-07-31 10:14:18 +08:00
parent fb46dd0ae3
commit 52dae69a29
29 changed files with 69 additions and 35 deletions
+2 -2
View File
@@ -31,10 +31,10 @@ class Source extends QfShop
// 检查缓存中是否存在该键
if (Cache::has($cacheKey)) {
return jerr("该接口今天已经执行过,请明天再试!");
return jerr("请勿频繁调用,一个小时后再试!");
}
Cache::set($cacheKey, time(), 43200);
Cache::set($cacheKey, time(), 3600);
ini_set('max_execution_time', -1);
//分页转存
+24 -16
View File
@@ -1,19 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<p>前端请自行前往uniapp市场打包上传</p>
<head>
<link rel="stylesheet" href="/assets/uni.4906e6f8.css">
<a href="https://ext.dcloud.net.cn/plugin?id=17278" target="_blank">https://ext.dcloud.net.cn/plugin?id=17278</a>
<p>打包后</p>
<p>index.html上传至文件夹/app/index/view/index</p>
<p>assets上传至文件夹/public</p>
</body>
</html>
<meta charset="UTF-8" />
<script>
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
CSS.supports('top: constant(a)'))
document.write(
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
</script>
<title>心悦搜剧-短剧搜索</title>
<link rel="icon" href="/assets/logo-DQLPqAxx.png" />
<script src="./static/config.js"></script>
<script charset="UTF-8" id="LA_COLLECT" src="//sdk.51.la/js-sdk-pro.min.js"></script>
<script>LA.init({id:"3HsdT1GaTQzE091Y",ck:"3HsdT1GaTQzE091Y",hashMode:true})</script>
<!--preload-links-->
<!--app-context-->
<script type="module" crossorigin src="/assets/index-CICgbd-2.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BLVVqZ0m.css">
</head>
<body>
<div id="app"><!--app-html--></div>
</body>
</html>
+1 -1
View File
@@ -47,7 +47,7 @@
</div>
<div style="margin-bottom: 20px;font-size:14px;color:#666;">
<p>自动更新:<font color=orangered>转存当日及昨天的资源数据;</font></p>
<font color=orangered>将此接口添加到计划任务中,计划任务每执行一次即可;接口地址:https://你的域名/api/source/day</font>
<font color=orangered>将此接口添加到计划任务中,计划任务每2个小时执行一次即可;接口地址:https://你的域名/api/source/day</font>
<p>Tips:添加计划任务后方可生效;名称重复的资源会跳过转存;</p>
</div>
</el-card>