正在显示
3 个修改的文件
包含
59 行增加
和
4 行删除
application/database.php
0 → 100755
1 | +<?php | ||
2 | + | ||
3 | +// +---------------------------------------------------------------------- | ||
4 | +// | ThinkPHP [ WE CAN DO IT JUST THINK ] | ||
5 | +// +---------------------------------------------------------------------- | ||
6 | +// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved. | ||
7 | +// +---------------------------------------------------------------------- | ||
8 | +// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) | ||
9 | +// +---------------------------------------------------------------------- | ||
10 | +// | Author: liu21st <liu21st@gmail.com> | ||
11 | +// +---------------------------------------------------------------------- | ||
12 | + | ||
13 | +use think\Env; | ||
14 | + | ||
15 | +return [ | ||
16 | + // 数据库类型 | ||
17 | + 'type' => Env::get('database.type', 'mysql'), | ||
18 | + // 服务器地址 | ||
19 | + 'hostname' => Env::get('database.hostname', '1f692e5a3458475ea270448f4d3bfde5in01.internal.cn-east-2.mysql.rds.myhuaweicloud.com'), | ||
20 | + // 数据库名 | ||
21 | + 'database' => Env::get('database.database', 'childrenenglish'), | ||
22 | + // 用户名 | ||
23 | + 'username' => Env::get('database.username', 'db136s1ehvo1yn73'), | ||
24 | + // 密码 | ||
25 | + 'password' => Env::get('database.password', 'cxz307311SJK'), | ||
26 | + // 端口 | ||
27 | + 'hostport' => Env::get('database.hostport', ''), | ||
28 | + // 连接dsn | ||
29 | + 'dsn' => '', | ||
30 | + // 数据库连接参数 | ||
31 | + 'params' => [], | ||
32 | + // 数据库编码默认采用 utf8mb4 | ||
33 | + 'charset' => Env::get('database.charset', 'utf8mb4'), | ||
34 | + // 数据库表前缀 | ||
35 | + 'prefix' => Env::get('database.prefix', 'fa_'), | ||
36 | + // 数据库调试模式 | ||
37 | + 'debug' => Env::get('database.debug', false), | ||
38 | + // 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器) | ||
39 | + 'deploy' => 0, | ||
40 | + // 数据库读写是否分离 主从式有效 | ||
41 | + 'rw_separate' => false, | ||
42 | + // 读写分离后 主服务器数量 | ||
43 | + 'master_num' => 1, | ||
44 | + // 指定从服务器序号 | ||
45 | + 'slave_no' => '', | ||
46 | + // 是否严格检查字段是否存在 | ||
47 | + 'fields_strict' => true, | ||
48 | + // 数据集返回类型 | ||
49 | + 'resultset_type' => 'array', | ||
50 | + // 自动写入时间戳字段 | ||
51 | + 'auto_timestamp' => false, | ||
52 | + // 时间字段取出后的默认时间格式,默认为Y-m-d H:i:s | ||
53 | + 'datetime_format' => false, | ||
54 | + // 是否需要进行SQL性能分析 | ||
55 | + 'sql_explain' => false, | ||
56 | +]; |
@@ -35,8 +35,8 @@ return array ( | @@ -35,8 +35,8 @@ return array ( | ||
35 | 'mail_smtp_pass' => 'password', | 35 | 'mail_smtp_pass' => 'password', |
36 | 'mail_verify_type' => '2', | 36 | 'mail_verify_type' => '2', |
37 | 'mail_from' => '10000@qq.com', | 37 | 'mail_from' => '10000@qq.com', |
38 | - 'score' => '2', | 38 | + 'score' => '10', |
39 | 'web_image' => '/uploads/20210802/e42cfba0c06b3bccf7e3fd889602487d.png', | 39 | 'web_image' => '/uploads/20210802/e42cfba0c06b3bccf7e3fd889602487d.png', |
40 | - 'correct_media' => '', | ||
41 | - 'error_media' => '', | 40 | + 'correct_media' => '/uploads/20211109/2d43b51b4ae24e2a0f71cf16bb2531bf.mp3', |
41 | + 'error_media' => '/uploads/20211109/2cf4b51147f8f7e162720e0247f2cde2.mp3', | ||
42 | ); | 42 | ); |
-
请 注册 或 登录 后发表评论