Merge branch 'dev' of ssh://git.bgbg.live:18150/root/SEONexus into dev

This commit is contained in:
Default
2025-04-14 15:27:35 +08:00
5 changed files with 151 additions and 4 deletions

View File

@@ -393,8 +393,9 @@ class Novel extends BaseController
}
}
// 分拼音
// 分拼音
$arrNovel['category_pinyin'] = CategoryModel::getPinYinByZh($arrNovel['og_novel_category']);
$arrNovel['category_sex'] = $arrNovel['category_sex'] ?? 'man';
// 最后章节
$ChapterModel = ChapterModel::getInstance();
@@ -496,8 +497,9 @@ class Novel extends BaseController
// 小说详情
$arrNovel = $NovelModel->getNovelByNId($intNId);
// 分拼音
// 分拼音
$arrNovel['category_pinyin'] = CategoryModel::getPinYinByZh($arrNovel['og_novel_category']);
$arrNovel['category_sex'] = $arrNovel['category_sex'] ?? 'man';
// 最后章节
$ChapterModel = ChapterModel::getInstance();

View File

@@ -11,7 +11,7 @@
<link rel="stylesheet" href="//at.alicdn.com/t/font_934628_byagqjb6vae.css" type="text/css">
<link rel="stylesheet" href="/public/layer/need/layer.css" type="text/css">
<!-- <script src="/public/jquery/jquery-3.7.1.min.js"></script> -->
</head>
<body class="skin-default">

View File

@@ -159,12 +159,13 @@
<div class="crumbs-nav">
<a href="{$strPcPath}/">首页</a>
<em class="iconfont"></em>
{if $arrNovel.category_sex == 'man'}
{if $arrNovel.category_sex && $arrNovel.category_sex == 'man'}
{$arrGRM[15]|raw}
<a href='{$strPcPath}{site:nflurl gender="$strNanUrlTemp" category="all" status="all" page="1"/}'>男生</a>
<em class="iconfont"></em>
{$arrGRM[14]|raw}
<?php $arrNovel['category_pinyin'] ?? $arrNovel['category_pinyin'] = 'all'?>
<a
href='{$strPcPath}{site:nflurl gender="$strNanUrlTemp" category="$arrNovel[category_pinyin]" status="all" page="1"/}'>{$arrNovel.og_novel_category}</a>

72
code/public/403.html Normal file
View File

@@ -0,0 +1,72 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404 - 页面未找到</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
background-color: #f2f2f2;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
color: #333;
}
.container {
max-width: 500px;
padding: 20px;
background: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
border-radius: 8px;
}
h1 {
font-size: 48px;
margin-bottom: 20px;
color: #e74c3c;
}
p {
font-size: 16px;
margin-bottom: 10px;
}
a {
color: #3498db;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.countdown {
font-weight: bold;
color: #e74c3c;
}
</style>
<script>
let countdown = 5;
function startCountdown() {
const countdownElement = document.getElementById('countdown');
const interval = setInterval(() => {
countdown--;
countdownElement.textContent = countdown;
if (countdown <= 0) {
clearInterval(interval);
window.history.back();
}
}, 1000);
}
</script>
</head>
<body onload="startCountdown()">
<div class="container">
<h1>403</h1>
<p>Too Many Requests</p>
<p>5 秒后将自动返回上一页。</p>
<p>倒计时:<span id="countdown" class="countdown">5</span></p>
<p>或者 <a href="/">点击这里返回首页</a></p>
</div>
</body>
</html>

72
code/public/404.html Normal file
View File

@@ -0,0 +1,72 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404 - 页面未找到</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
background-color: #f2f2f2;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
color: #333;
}
.container {
max-width: 500px;
padding: 20px;
background: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
border-radius: 8px;
}
h1 {
font-size: 48px;
margin-bottom: 20px;
color: #e74c3c;
}
p {
font-size: 16px;
margin-bottom: 10px;
}
a {
color: #3498db;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.countdown {
font-weight: bold;
color: #e74c3c;
}
</style>
<script>
let countdown = 5;
function startCountdown() {
const countdownElement = document.getElementById('countdown');
const interval = setInterval(() => {
countdown--;
countdownElement.textContent = countdown;
if (countdown <= 0) {
clearInterval(interval);
window.history.back();
}
}, 1000);
}
</script>
</head>
<body onload="startCountdown()">
<div class="container">
<h1>404</h1>
<p>抱歉,您访问的页面不存在。</p>
<p>5 秒后将自动返回上一页。</p>
<p>倒计时:<span id="countdown" class="countdown">5</span></p>
<p>或者 <a href="/">点击这里返回首页</a></p>
</div>
</body>
</html>