From 26c107bdc7300f3ec7f48707e917423daa272e29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E5=BC=BA?= <357099073@qq.com> Date: Tue, 10 Jun 2025 15:46:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0gnore=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + app/index/view/resources/detail.php | 710 ++++++++++++++++++++++++++++ app/index/view/resources/index.php | 539 +++++++++++++++++++++ app/index/view/resources/list.php | 76 +++ config/database.php | 3 +- 5 files changed, 1328 insertions(+), 1 deletion(-) create mode 100644 app/index/view/resources/detail.php create mode 100644 app/index/view/resources/index.php create mode 100644 app/index/view/resources/list.php diff --git a/.gitignore b/.gitignore index 338f014..625fcdf 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /vendor runtime *.log +config/database.php diff --git a/app/index/view/resources/detail.php b/app/index/view/resources/detail.php new file mode 100644 index 0000000..52f6dda --- /dev/null +++ b/app/index/view/resources/detail.php @@ -0,0 +1,710 @@ +{include file="component/head" /} +{include file="component/header-simple" /} +
+
+
+
+ +
+
+
+
+ 首页 + > + +
+
+
+
+
+ +
+
+
+
+
+ + +
+
+
+
+
+ +
+
+ +
+
+
+
+
Free
+
+
更新时间:
+
所属分类:
+
程序编号:
+
查看:
+
下载:
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+ + +
+
+
+ +
+
+
免责声明:
+
+ +
+
+
+ +
+
+
+
+
+
+ + + + + +
+
+
+ +
+
+
+ +
+ + +
+ +
+ +{include file="component/footer" /} + + + + + +{include file="component/foot" /} \ No newline at end of file diff --git a/app/index/view/resources/index.php b/app/index/view/resources/index.php new file mode 100644 index 0000000..36fdb08 --- /dev/null +++ b/app/index/view/resources/index.php @@ -0,0 +1,539 @@ +{include file="component/head" /} +{include file="component/header-simple" /} + + +
+ +
+
+

资源中心

+

网络天下资源,一站式搜索

+
+
+ + +
+
+ + + + +
+ +
+ {volist name="cate.subCategories" id="subCategory"} + {if $cate.id == $subCategory.id} + {if !empty($subCategory.list)} + {volist name="subCategory.list" id="game"} + +
+ {$game.title} +
+
+
+
+ {$subCategory.name} + +
+

{$game.title}

+ +
+
+ {/volist} + {else} +
+
+ +
+

暂无文章

+

当前分类下没有找到相关文章

+
+ {/if} + {/if} + {/volist} +
+ + + +
+
+
+
+ + + +{include file="component/footer" /} + + + +{include file="component/foot" /} \ No newline at end of file diff --git a/app/index/view/resources/list.php b/app/index/view/resources/list.php new file mode 100644 index 0000000..efc8155 --- /dev/null +++ b/app/index/view/resources/list.php @@ -0,0 +1,76 @@ +
+
+ +
+
+ +
+ {volist name="categories" id="cate"} +
{$cate.name}
+ {/volist} +
+
+
+ + +
+ {if $category} +
+

{$category.name}

+

{$category.desc|default=''}

+
+ {/if} + +
+ {volist name="games" id="article"} +
+
+
+
+ {$article.title} +
+
+
+
+

+ {$article.title} +

+

{$article.desc|default=''}

+ +
+
+
+
+ {/volist} +
+ + +
+ {$games|raw} +
+
+
+
+ + diff --git a/config/database.php b/config/database.php index 772af6c..ff49534 100644 --- a/config/database.php +++ b/config/database.php @@ -41,7 +41,8 @@ return [ // 数据库类型 'type' => env('database.type', 'mysql'), // 服务器地址 - 'hostname' => env('database.hostname', '121.36.243.179'), + // 'hostname' => env('database.hostname', '121.36.243.179'), + 'hostname' => env('database.hostname', '127.0.0.1'), // 数据库名 'database' => env('database.database', 'yunzertest'), // 用户名