diff --git a/application/extra/sqlite.db b/application/extra/sqlite.db
new file mode 100644
index 000000000..5b38af8a8
Binary files /dev/null and b/application/extra/sqlite.db differ
diff --git a/application/index/controller/Index.php b/application/index/controller/Index.php
index 2ab0697ba..9435ed959 100644
--- a/application/index/controller/Index.php
+++ b/application/index/controller/Index.php
@@ -5,6 +5,6 @@ class Index
{
public function index()
{
- return '
:)
ThinkPHP V5
十年磨一剑 - 为API开发设计的高性能框架
[ V5.0 版本由 七牛云 独家赞助发布 ] ';
+ return ' :)
ThinkPHP V5
十年磨一剑 - 为API开发设计的高性能框架
[ V5.0 版本由 七牛云 独家赞助发布 ] ';
}
}
diff --git a/config/database.php b/config/database.php
index 5d3cab15b..69da17407 100644
--- a/config/database.php
+++ b/config/database.php
@@ -11,13 +11,13 @@
return [
// 数据库类型
- 'type' => 'mysql',
+ 'type' => 'Sqlite',
// 服务器地址
- 'hostname' => '127.0.0.1',
+ 'hostname' => '',
// 数据库名
- 'database' => '',
+ 'database' => APP_PATH.'extra/sqlite.db',
// 用户名
- 'username' => 'root',
+ 'username' => '',
// 密码
'password' => '',
// 端口