diff --git a/.env b/.env new file mode 100644 index 0000000..9ca7c2d --- /dev/null +++ b/.env @@ -0,0 +1,23 @@ +APP_DEBUG = true +APP_SHOW_ERROR = true +APP_MODE = production + +[APP] +DEFAULT_TIMEZONE = Asia/Shanghai +DEFAULT_IMG_URL = http://localhost:3000 + +[DATABASE] +TYPE = mysql +DATABASE = drag-create +HOSTNAME = 47.242.159.172 +USERNAME = root +PASSWORD = 42hMXjNe3fWbTWiM +# HOSTNAME = 127.0.0.1 +# USERNAME = root +# PASSWORD = root +HOSTPORT = 3306 +CHARSET = utf8 +DEBUG = true + +[LANG] +default_lang = zh-cn \ No newline at end of file diff --git a/.gitignore b/.gitignore index e3dd1dc..2afc718 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,6 @@ /vendor /public/uploads/** *.log -.env *.http runtime/* app/admin/controller/Gen/Gen.php diff --git a/composer.lock b/composer.lock index c1a9297..d6e52cf 100644 --- a/composer.lock +++ b/composer.lock @@ -553,7 +553,7 @@ }, { "name": "maennchen/zipstream-php", - "version": "v2.4.0", + "version": "2.4.0", "source": { "type": "git", "url": "https://github.com/maennchen/ZipStream-PHP.git", @@ -621,7 +621,7 @@ ], "support": { "issues": "https://github.com/maennchen/ZipStream-PHP/issues", - "source": "https://github.com/maennchen/ZipStream-PHP/tree/v2.4.0" + "source": "https://github.com/maennchen/ZipStream-PHP/tree/2.4.0" }, "funding": [ { @@ -2503,16 +2503,16 @@ }, { "name": "topthink/framework", - "version": "v6.1.2", + "version": "v6.1.3", "source": { "type": "git", "url": "https://github.com/top-think/framework.git", - "reference": "67235be5b919aaaf1de5aed9839f65d8e766aca3" + "reference": "7c324e7011246f0064b055b62ab9c3921cf0a041" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/top-think/framework/zipball/67235be5b919aaaf1de5aed9839f65d8e766aca3", - "reference": "67235be5b919aaaf1de5aed9839f65d8e766aca3", + "url": "https://api.github.com/repos/top-think/framework/zipball/7c324e7011246f0064b055b62ab9c3921cf0a041", + "reference": "7c324e7011246f0064b055b62ab9c3921cf0a041", "shasum": "", "mirrors": [ { @@ -2568,9 +2568,9 @@ ], "support": { "issues": "https://github.com/top-think/framework/issues", - "source": "https://github.com/top-think/framework/tree/v6.1.2" + "source": "https://github.com/top-think/framework/tree/v6.1.3" }, - "time": "2023-02-08T02:24:01+00:00" + "time": "2023-05-22T03:02:08+00:00" }, { "name": "topthink/think-captcha", @@ -2789,16 +2789,16 @@ }, { "name": "topthink/think-multi-app", - "version": "v1.0.16", + "version": "v1.0.17", "source": { "type": "git", "url": "https://github.com/top-think/think-multi-app.git", - "reference": "07b9183855150455e1f76f8cbe9d77d6d1bc399f" + "reference": "4055a6187296ac16c0bc7bbab4ed5d92f82f791c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/top-think/think-multi-app/zipball/07b9183855150455e1f76f8cbe9d77d6d1bc399f", - "reference": "07b9183855150455e1f76f8cbe9d77d6d1bc399f", + "url": "https://api.github.com/repos/top-think/think-multi-app/zipball/4055a6187296ac16c0bc7bbab4ed5d92f82f791c", + "reference": "4055a6187296ac16c0bc7bbab4ed5d92f82f791c", "shasum": "", "mirrors": [ { @@ -2834,12 +2834,12 @@ "email": "liu21st@gmail.com" } ], - "description": "thinkphp6 multi app support", + "description": "thinkphp multi app support", "support": { "issues": "https://github.com/top-think/think-multi-app/issues", - "source": "https://github.com/top-think/think-multi-app/tree/v1.0.16" + "source": "https://github.com/top-think/think-multi-app/tree/v1.0.17" }, - "time": "2023-02-07T08:40:09+00:00" + "time": "2023-03-29T02:04:29+00:00" }, { "name": "topthink/think-orm", diff --git a/config/database.php b/config/database.php index a93e3c2..6142db0 100644 --- a/config/database.php +++ b/config/database.php @@ -26,11 +26,11 @@ return [ // 服务器地址 'hostname' => env('database.hostname', '47.242.159.172'), // 数据库名 - 'database' => env('database.database', 'php_mb_V1.1'), + 'database' => env('database.database', 'drag-create'), // 用户名 - 'username' => env('database.username', 'php_mb_V1.1'), + 'username' => env('database.username', 'root'), // 密码 - 'password' => env('database.password', 'jh87R4ipFt24Hct8'), + 'password' => env('database.password', '42hMXjNe3fWbTWiM'), // 端口 'hostport' => env('database.hostpost', '3306'), // 数据库连接参数