mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-24 12:07:28 +08:00
refactor: 重构规范部分代码、邮件队列增加失败重试、去除多个支付方式、更新依赖
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
use App\Support\Setting;
|
||||
|
||||
|
||||
if (! function_exists("get_request_content")){
|
||||
@@ -20,14 +21,14 @@ if (! function_exists('admin_setting')) {
|
||||
function admin_setting($key = null, $default = null)
|
||||
{
|
||||
if ($key === null) {
|
||||
return app('setting');
|
||||
return App::make(Setting::class)->toArray();
|
||||
}
|
||||
|
||||
if (is_array($key)) {
|
||||
app('setting')->save($key);
|
||||
return;
|
||||
App::make(Setting::class)->save($key);
|
||||
return '';
|
||||
}
|
||||
$default = config('v2board.'. $key) ?? $default;
|
||||
return app('setting')->get($key) ?? $default ;
|
||||
return App::make(Setting::class)->get($key) ?? $default ;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user