Sfoglia il codice sorgente

Wesmiler 三勾多商户商城提交

wesmiler 4 anni fa
parent
commit
3c1f7a0c50
3 ha cambiato i file con 39 aggiunte e 0 eliminazioni
  1. 20 0
      .env
  2. 17 0
      route/app.php
  3. 2 0
      vendor/.gitignore

+ 20 - 0
.env

@@ -0,0 +1,20 @@
+APP_DEBUG = true
+
+[APP]
+DEFAULT_TIMEZONE = Asia/Shanghai
+
+[DATABASE]
+TYPE = mysql
+HOSTNAME = 47.112.222.163
+DATABASE = mysql
+USERNAME = mysql&123
+PASSWORD = mysql123
+HOSTPORT = 3306
+CHARSET = utf8
+DEBUG = true
+
+[Redis]
+
+
+[LANG]
+default_lang = zh-cn

+ 17 - 0
route/app.php

@@ -0,0 +1,17 @@
+<?php
+// +----------------------------------------------------------------------
+// | ThinkPHP [ WE CAN DO IT JUST THINK ]
+// +----------------------------------------------------------------------
+// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
+// +----------------------------------------------------------------------
+// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
+// +----------------------------------------------------------------------
+// | Author: liu21st <liu21st@gmail.com>
+// +----------------------------------------------------------------------
+use think\facade\Route;
+
+Route::get('think', function () {
+    return 'hello,ThinkPHP6!';
+});
+
+Route::get('hello/:name', 'index/hello');

+ 2 - 0
vendor/.gitignore

@@ -0,0 +1,2 @@
+*
+!.gitignore