Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
亲子游项目
backend
Commits
d5a1ca4f
Commit
d5a1ca4f
authored
Dec 10, 2018
by
LiuJunYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置环境
parent
be9d05b1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
10 deletions
+11
-10
.gitignore
+1
-0
application/config.php
+4
-4
application/database.php
+6
-6
No files found.
.gitignore
View file @
d5a1ca4f
...
@@ -5,4 +5,5 @@ sftp-config.json
...
@@ -5,4 +5,5 @@ sftp-config.json
.vscode
.vscode
logs
logs
runtime/*
runtime/*
.ENV
*.yml
*.yml
application/config.php
View file @
d5a1ca4f
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
use
think\Env
;
$config
=
[
$config
=
[
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
// | 应用设置
// | 应用设置
...
@@ -244,8 +244,8 @@ $config = [
...
@@ -244,8 +244,8 @@ $config = [
],
],
'app_name'
=>
'美行者亲子游'
,
'app_name'
=>
'美行者亲子游'
,
'domain'
=>
'http://
mavaler.jqhulian.com
'
,
'domain'
=>
'http://
'
.
Env
::
get
(
'setting.domain'
,
'mavaler.jqhulian.com'
)
.
'/
'
,
'domain_ssl'
=>
'https://
mavaler.jqhulian.com
/'
,
'domain_ssl'
=>
'https://
'
.
Env
::
get
(
'setting.domain'
,
'mavaler.jqhulian.com'
)
.
'
/'
,
// 微信小程序配置
// 微信小程序配置
'wxapp'
=>
[
'wxapp'
=>
[
...
@@ -327,7 +327,7 @@ $config = [
...
@@ -327,7 +327,7 @@ $config = [
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
'wx_pay'
=>
[
'wx_pay'
=>
[
'notify_url'
=>
'https://
mavaler.jqhulian.com
/api/Order/callback'
,
'notify_url'
=>
'https://
'
.
Env
::
get
(
'setting.domain'
,
'meixz.utools.club'
)
.
'
/api/Order/callback'
,
'vip_title'
=>
'美行者会员VIP'
,
'vip_title'
=>
'美行者会员VIP'
,
'vip_price'
=>
49.9
,
'vip_price'
=>
49.9
,
'app_id'
=>
'wx1b834552a7d49bb3'
,
'app_id'
=>
'wx1b834552a7d49bb3'
,
...
...
application/database.php
View file @
d5a1ca4f
...
@@ -8,20 +8,20 @@
...
@@ -8,20 +8,20 @@
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
use
think\Env
;
$config
=
[
$config
=
[
// 数据库类型
// 数据库类型
'type'
=>
'mysql'
,
'type'
=>
'mysql'
,
// 服务器地址
// 服务器地址
'hostname'
=>
'cd-cdb-1ub1rbe4.sql.tencentcdb.com:63819'
,
'hostname'
=>
Env
::
get
(
'database.hostname'
,
'127.0.0.1'
)
,
// 数据库名
// 数据库名
'database'
=>
'mavaler'
,
'database'
=>
Env
::
get
(
'database.database'
,
'mavaler'
)
,
// 用户名
// 用户名
'username'
=>
'jqclient'
,
'username'
=>
Env
::
get
(
'database.username'
,
'root'
)
,
// 密码
// 密码
'password'
=>
'Jqkh#db2018'
,
'password'
=>
Env
::
get
(
'database.password'
,
'168168'
)
,
// 端口
// 端口
'hostport'
=>
'3607'
,
'hostport'
=>
Env
::
get
(
'database.hostport'
,
'3306'
)
,
// 连接dsn
// 连接dsn
'dsn'
=>
''
,
'dsn'
=>
''
,
// 数据库连接参数
// 数据库连接参数
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment