Skip to content

Commit

Permalink
Merge branch 'assimon:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
niceluckyday authored Nov 30, 2022
2 parents d4f1fc4 + e6f1fbe commit 0d76b12
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/Admin/Forms/EmailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function handle(array $input)
$body = $input['body'];
$sysConfig = cache('system-setting');
$mailConfig = [
'driver' => $sysConfig['driver'] ?? 'stmp',
'driver' => $sysConfig['driver'] ?? 'smtp',
'host' => $sysConfig['host'] ?? '',
'port' => $sysConfig['port'] ?? '465',
'username' => $sysConfig['username'] ?? '',
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Home/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function doInstall(Request $request)
];
$dbConfig['redis']['default'] = array_merge($dbConfig['redis']['default'], $redisDB);
config(['database' => $dbConfig]);
(new DatabaseServiceProvider(app()))->register();
DB::purge();
// db测试
DB::connection()->select('select 1 limit 1');
// redis测试
Expand Down
2 changes: 1 addition & 1 deletion app/Jobs/MailSend.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function handle()
$title = $this->title;
$sysConfig = cache('system-setting');
$mailConfig = [
'driver' => $sysConfig['driver'] ?? 'stmp',
'driver' => $sysConfig['driver'] ?? 'smtp',
'host' => $sysConfig['host'] ?? '',
'port' => $sysConfig['port'] ?? '465',
'username' => $sysConfig['username'] ?? '',
Expand Down
16 changes: 13 additions & 3 deletions resources/views/luna/layouts/_notice.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
<div class="notice layui-hide-xs">
<p class="tit">{{ __('dujiaoka.site_announcement') }}:</p>
<div class="tips">{!! dujiaoka_config_get('notice') !!}</div>
<div class="main layui-hide-xs">
<div class="layui-row">
<div class="layui-col-sm12">
<div class="main-box">
<div class="title">
<p class="tit">{{ __('dujiaoka.site_announcement') }}:</p>
</div>
<div class="goods">
<div class="tips">{!! dujiaoka_config_get('notice') !!}</div>
</div>
</div>
</div>
</div>
</div>

0 comments on commit 0d76b12

Please sign in to comment.