diff --git a/plugins/Social/Views/shop/Bootstrap.php b/plugins/Social/Views/shop/Bootstrap.php deleted file mode 100644 index 5fd6695c..00000000 --- a/plugins/Social/Views/shop/Bootstrap.php +++ /dev/null @@ -1,39 +0,0 @@ - - * @created 2022-10-12 17:33:29 - * @modified 2022-10-12 17:33:29 - */ - -namespace Plugin\Social; - - -class Bootstrap -{ - public function boot() - { - $this->addSocialData(); - } - - /** - * 增加第三方登录方式 - */ - private function addSocialData() - { - add_filter('login.social.buttons', function ($buttons) { - $providers = plugin_setting('social.setting'); - if (empty($providers)) { - return $buttons; - } - - foreach ($providers as $provider) { - $buttons[] = view('Social::shop/social_button', ['provider' => $provider])->render(); - } - return $buttons; - }); - } -}