Explorar o código

基础配置修改

lizhen_gitee %!s(int64=3) %!d(string=hai) anos
pai
achega
2105d5368b
Modificáronse 4 ficheiros con 15 adicións e 12 borrados
  1. 5 3
      application/config.php
  2. 1 1
      application/database.php
  3. 7 6
      application/extra/site.php
  4. 2 2
      public/admin.php

+ 5 - 3
application/config.php

@@ -19,8 +19,10 @@ return [
     'app_namespace'          => 'app',
     // 应用调试模式
     'app_debug'              => Env::get('app.debug', false),
+    'app_debug'              => true,
     // 应用Trace
     'app_trace'              => Env::get('app.trace', false),
+    'app_trace'              => true,
     // 应用模式状态
     'app_status'             => '',
     // 是否支持多模块
@@ -264,7 +266,7 @@ return [
         //会员注册验证码类型email/mobile/wechat/text/false
         'user_register_captcha' => 'text',
         //登录验证码
-        'login_captcha'         => true,
+        'login_captcha'         => false,
         //登录失败超过10次则1天后重试
         'login_failure_retry'   => true,
         //是否同一账号同一时间只能在一个地方登录
@@ -278,7 +280,7 @@ return [
         //是否开启多选项卡(仅在开启多级菜单时起作用)
         'multipletab'           => true,
         //后台皮肤,为空时表示使用skin-black-green
-        'adminskin'             => '',
+        'adminskin'             => 'skin-black-green',
         //后台是否启用面包屑
         'breadcrumb'            => false,
         //是否允许未知来源的插件压缩包
@@ -290,7 +292,7 @@ return [
         //插件纯净模式,插件启用后是否删除插件目录的application、public和assets文件夹
         'addon_pure_mode'       => true,
         //允许跨域的域名,多个以,分隔
-        'cors_request_domain'   => 'localhost,127.0.0.1',
+        'cors_request_domain'   => 'localhost,127.0.0.1,*',
         //版本号
         'version'               => '1.2.1.20210730_beta',
         //API接口地址

+ 1 - 1
application/database.php

@@ -32,7 +32,7 @@ return [
     // 数据库编码默认采用 utf8mb4
     'charset'         => Env::get('database.charset', 'utf8mb4'),
     // 数据库表前缀
-    'prefix'          => Env::get('database.prefix', 'mt'),
+    'prefix'          => Env::get('database.prefix', 'mt_'),
     // 数据库调试模式
     'debug'           => Env::get('database.debug', false),
     // 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)

+ 7 - 6
application/extra/site.php

@@ -28,12 +28,6 @@ return array (
     'user' => 'User',
     'example' => 'Example',
   ),
-  'attachmentcategory' => 
-  array (
-    'category1' => 'Category1',
-    'category2' => 'Category2',
-    'custom' => 'Custom',
-  ),
   'mail_type' => '1',
   'mail_smtp_host' => 'smtp.qq.com',
   'mail_smtp_port' => '465',
@@ -41,4 +35,11 @@ return array (
   'mail_smtp_pass' => 'password',
   'mail_verify_type' => '2',
   'mail_from' => '10000@qq.com',
+  'attachmentcategory' => 
+  array (
+    'category1' => 'Category1',
+    'category2' => 'Category2',
+    'custom' => 'Custom',
+  ),
+  'domain_name' => 'http://mita.com',
 );

+ 2 - 2
public/admin.php

@@ -16,10 +16,10 @@
 define('APP_PATH', __DIR__ . '/../application/');
 
 // 判断是否安装
-if (!is_file(APP_PATH . 'admin/command/Install/install.lock')) {
+/*if (!is_file(APP_PATH . 'admin/command/Install/install.lock')) {
     header("location:./install.php");
     exit;
-}
+}*/
 
 // 加载框架引导文件
 require __DIR__ . '/../thinkphp/base.php';