refactor: 重构规范部分代码、邮件队列增加失败重试、去除多个支付方式、更新依赖

This commit is contained in:
xboard
2024-04-10 00:51:03 +08:00
parent ec63e05575
commit 4c6c7182e2
50 changed files with 421 additions and 1005 deletions
+5 -4
View File
@@ -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 ;
}
}