Commit d5a1ca4f by LiuJunYi

配置环境

parent be9d05b1
......@@ -5,4 +5,5 @@ sftp-config.json
.vscode
logs
runtime/*
.ENV
*.yml
......@@ -8,7 +8,7 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Env;
$config = [
// +----------------------------------------------------------------------
// | 应用设置
......@@ -244,8 +244,8 @@ $config = [
],
'app_name' => '美行者亲子游',
'domain' => 'http://mavaler.jqhulian.com',
'domain_ssl' => 'https://mavaler.jqhulian.com/',
'domain' => 'http://'.Env::get('setting.domain', 'mavaler.jqhulian.com').'/',
'domain_ssl' => 'https://'.Env::get('setting.domain', 'mavaler.jqhulian.com').'/',
// 微信小程序配置
'wxapp' => [
......@@ -327,7 +327,7 @@ $config = [
// +----------------------------------------------------------------------
'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_price' => 49.9,
'app_id' => 'wx1b834552a7d49bb3',
......
......@@ -8,20 +8,20 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Env;
$config = [
// 数据库类型
'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' => '',
// 数据库连接参数
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment