From c3210db7c5b51458b0f2f4bf4f213f05a641f7db Mon Sep 17 00:00:00 2001 From: caoming <604844710@qq.com> Date: Tue, 29 Oct 2019 22:03:53 +0800 Subject: [PATCH] app-ht(v1.8.6 build 9) 1.后台配置文件恢复 --- app-ht/config/main.php | 28 +++++++++++++++++++++++++--- app-ht/config/params.php | 2 +- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/app-ht/config/main.php b/app-ht/config/main.php index 47c5e6a..1484c0f 100644 --- a/app-ht/config/main.php +++ b/app-ht/config/main.php @@ -34,9 +34,19 @@ $config = [ 'my'=>[ 'class' => 'app\ht\modules\my\Module', ], + 'project' => [ + 'class' => 'app\ht\modules\project\Module', + ], + 'model' => [ + 'class' => 'app\ht\modules\model\Module', + ], 'home' => [ 'class' => 'app\ht\modules\home\Module', ] + , + 'production' => [ + 'class' => 'app\ht\modules\production\Module', + ] ], 'components' => [ 'user' => [ @@ -59,8 +69,10 @@ $config = [ 'thousandSeparator' => ' ', 'currencyCode' => 'CNY', ], - - + 'urlManager' => [ + 'enablePrettyUrl' => true, + 'showScriptName' => false, + ], ], 'params' => $params, 'as access' => [ @@ -81,11 +93,21 @@ $config = [ 'site/ajax-instant', 'site/ajax-wares-tab', 'site/ajax-member-chart', + 'my/default/index', // 个人中心登陆即可 + 'my/default/do-update', + 'my/default/password', + 'my/default/do-password', + 'device/index', + 'device/index/index', 'test/index', ] ], - + 'on beforeRequest' => function($event) { + Event::on(BaseActiveRecord::className(), BaseActiveRecord::EVENT_AFTER_INSERT, ['common\components\adminlog\AdminLogs', 'write']); + Event::on(BaseActiveRecord::className(), BaseActiveRecord::EVENT_AFTER_UPDATE, ['common\components\adminlog\AdminLogs', 'write']); + Event::on(BaseActiveRecord::className(), BaseActiveRecord::EVENT_AFTER_DELETE, ['common\components\adminlog\AdminLogs', 'write']); + }, ]; return $config; diff --git a/app-ht/config/params.php b/app-ht/config/params.php index 50771f7..9323615 100644 --- a/app-ht/config/params.php +++ b/app-ht/config/params.php @@ -1,4 +1,4 @@ 'v1.8.6 build 8', + 'VERSION' => 'v1.8.6 build 9', ]; \ No newline at end of file -- libgit2 0.21.0