refactor: 重构规范部分代码、邮件队列增加失败重试、去除多个支付方式、更新依赖
This commit is contained in:
1 parent
880e5eb29d
commit
18ec8ee813
50 files changed
+421
-1005
No files matched your search
@@ -4,6 +4,7 @@ namespace App\Providers;
|
||||
|
||||
use App\Support\Setting;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Illuminate\Contracts\Foundation\Application;
|
||||
|
||||
class SettingServiceProvider extends ServiceProvider
|
||||
{
|
||||
@@ -14,9 +15,11 @@ class SettingServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->app->bind('setting', function ($app) {
|
||||
return Setting::fromDatabase(); // 假设 AdminSetting 是您的设置类
|
||||
|
||||
$this->app->bind(Setting::class, function (Application $app) {
|
||||
return new Setting();
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -26,6 +29,5 @@ class SettingServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user