Browse Source

约课开始

lizhen_gitee 1 year ago
parent
commit
6d61b79797
4 changed files with 14 additions and 11 deletions
  1. 2 2
      application/config.php
  2. 6 4
      application/database.php
  3. 2 5
      application/extra/site.php
  4. 4 0
      gitpull.sh

+ 2 - 2
application/config.php

@@ -306,7 +306,7 @@ return [
 
     //小程序
     'wxMiniProgram' => [
-        'appid'=>'wxfbf1d5e8ade16b4d', //公司测试
-        'secret'=>'eea1bbac593f085d726b752300ba6ee7', //公司测试
+        'appid'=>'', //公司测试
+        'secret'=>'', //公司测试
     ],
 ];

+ 6 - 4
application/database.php

@@ -16,13 +16,13 @@ return [
     // 数据库类型
     'type'            => Env::get('database.type', 'mysql'),
     // 服务器地址
-    'hostname'        => Env::get('database.hostname', '121.5.123.166'),
+    'hostname'        => Env::get('database.hostname', '106.54.206.212'),
     // 数据库名
-    'database'        => Env::get('database.database', 'shipinjiaoyu'),
+    'database'        => Env::get('database.database', 'yueke'),
     // 用户名
-    'username'        => Env::get('database.username', 'shipinjiaoyu'),
+    'username'        => Env::get('database.username', 'yueke'),
     // 密码
-    'password'        => Env::get('database.password', 'TcmyLsLBJdGDdrkJ'),
+    'password'        => Env::get('database.password', 'zSHX2DJhRK5KEsYb'),
     // 端口
     'hostport'        => Env::get('database.hostport', ''),
     // 连接dsn
@@ -53,4 +53,6 @@ return [
     'datetime_format' => false,
     // 是否需要进行SQL性能分析
     'sql_explain'     => false,
+    // 是否需要断线重连
+    'break_reconnect' => true,
 ];

+ 2 - 5
application/extra/site.php

@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'name' => '视频教育',
+  'name' => '约课app',
   'beian' => '',
   'cdnurl' => '',
   'version' => '1.0.1',
@@ -24,8 +24,8 @@ return array (
   array (
     'basic' => '基础配置',
     'dictionary' => '字典配置',
-    'service' => '金钱配置',
     'website' => '站点配置',
+    'service' => '金钱配置',
   ),
   'mail_type' => '1',
   'mail_smtp_host' => 'smtp.qq.com',
@@ -40,7 +40,4 @@ return array (
     'category2' => '分类二',
     'custom' => '自定义',
   ),
-  'withdrawal_service_fee' => '2',
-  'min_withdrawal_money' => '0.3',
-  'max_withdrawal_money' => '1000000',
 );

+ 4 - 0
gitpull.sh

@@ -0,0 +1,4 @@
+sudo -uroot git reset --hard;
+sudo -uroot git pull;
+sudo -uroot chown -R www:www /www/wwwroot/yueke.huxiukeji.cn;
+sudo -uroot chmod -R 777 *;