Kirin 3 years ago
parent
commit
b1120bc07e
4 changed files with 15 additions and 15 deletions
  1. 3 1
      application/api/controller/Index.php
  2. 2 2
      application/database.php
  3. 10 4
      application/extra/site.php
  4. 0 8
      public/.htaccess

+ 3 - 1
application/api/controller/Index.php

@@ -25,7 +25,9 @@ class Index extends Api
         $newProduct = \app\admin\model\product\Product::validWhere()->where('newswitch', 1)->select();
         $cases = \app\admin\model\cases\Cases::validWhere()->where('indexswitch', 1)->select();
         $banners = $this->site['banners'];
-        $this->success('请求成功', compact('banners', 'cases', 'loopProduct', 'newProduct', 'recommendProduct'));
+        $company_cover = $this->site['company_cover'];
+        $about_us = $this->site['about_us'];
+        $this->success('请求成功', compact('company_cover', 'about_us', 'banners', 'cases', 'loopProduct', 'newProduct', 'recommendProduct'));
     }
 
     public function cates($type = '')

+ 2 - 2
application/database.php

@@ -18,11 +18,11 @@ return [
     // 服务器地址
     'hostname'        => Env::get('database.hostname', '127.0.0.1'),
     // 数据库名
-    'database'        => Env::get('database.database', 'fudi'),
+    'database'        => Env::get('database.database', 'lanbo'),
     // 用户名
     'username'        => Env::get('database.username', 'root'),
     // 密码
-    'password'        => Env::get('database.password', ''),
+    'password'        => Env::get('database.password', 'root'),
     // 端口
     'hostport'        => Env::get('database.hostport', ''),
     // 连接dsn

+ 10 - 4
application/extra/site.php

@@ -1,8 +1,8 @@
 <?php
 
 return [
-    'name' => '富地机械',
-    'beian' => '',
+    'name' => 'lanbo',
+    'beian' => '浙ICP备2021004458号',
     'cdnurl' => '',
     'version' => '1.0.1',
     'timezone' => 'Asia/Shanghai',
@@ -13,11 +13,11 @@ return [
     ],
     'fixedpage' => 'general/config',
     'categorytype' => [
-        'article' => '公司介绍',
-        'story' => '创业故事',
         'about' => '关于我们',
         'cases' => '方案案例',
         'product' => '公司产品',
+        'article' => '公司介绍',
+        'story' => '创业故事',
     ],
     'configgroup' => [
         'basic' => 'Basic',
@@ -35,4 +35,10 @@ return [
         'en' => 'English',
         'es' => 'Español',
     ],
+    'company_cover' => '<p>风发发发撒娇多耨撒多多多多多多多多多都ID你搜爱你都is安东is按哦蒂娜松动as弄得那艘in都爱</p><p><br></p>',
+    'about_us' => '<p>强求请求群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群</p>',
+    'banners' => [
+        '/uploads/20210420/745147dfc7b9212783896c88da6f4e7f.png',
+        '/uploads/20210420/b3ed940f0335ade4e451ff2b6ac4079f.png',
+    ],
 ];

+ 0 - 8
public/.htaccess

@@ -1,8 +0,0 @@
-<IfModule mod_rewrite.c>
-  Options +FollowSymlinks -Multiviews
-  RewriteEngine On
-
-  RewriteCond %{REQUEST_FILENAME} !-d
-  RewriteCond %{REQUEST_FILENAME} !-f
-  RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
-</IfModule>