diff --git a/beike/Admin/View/Components/Form/Input.php b/beike/Admin/View/Components/Form/Input.php index 7f925838..09a0c69d 100644 --- a/beike/Admin/View/Components/Form/Input.php +++ b/beike/Admin/View/Components/Form/Input.php @@ -26,15 +26,15 @@ class Input extends Component public function __construct(string $name, string $title, string $value, bool $required = false, string $error = '', string $width = '400', string $type = 'text', string $step = '', string $placeholder = '') { - $this->name = $name; - $this->title = $title; - $this->value = html_entity_decode($value, ENT_QUOTES); - $this->error = $error; - $this->width = $width; + $this->name = $name; + $this->title = $title; + $this->value = html_entity_decode($value, ENT_QUOTES); + $this->error = $error; + $this->width = $width; $this->placeholder = $placeholder; - $this->type = $type; - $this->step = $step; - $this->required = $required; + $this->type = $type; + $this->step = $step; + $this->required = $required; } public function render() diff --git a/beike/Admin/View/Components/Form/InputLocale.php b/beike/Admin/View/Components/Form/InputLocale.php index 3b6c2377..7f4e8dc2 100644 --- a/beike/Admin/View/Components/Form/InputLocale.php +++ b/beike/Admin/View/Components/Form/InputLocale.php @@ -22,12 +22,12 @@ class InputLocale extends Component public function __construct(string $name, string $title, $value, string $width = '400', bool $required = false, string $placeholder = '') { - $this->name = $name; - $this->title = $title; - $this->width = $width; + $this->name = $name; + $this->title = $title; + $this->width = $width; $this->placeholder = $placeholder; - $this->value = $value; - $this->required = $required; + $this->value = $value; + $this->required = $required; } public function render() diff --git a/beike/Repositories/ProductRepo.php b/beike/Repositories/ProductRepo.php index b197a362..34d4582b 100644 --- a/beike/Repositories/ProductRepo.php +++ b/beike/Repositories/ProductRepo.php @@ -19,13 +19,13 @@ use Beike\Models\ProductCategory; use Beike\Models\ProductDescription; use Beike\Models\ProductRelation; use Beike\Models\ProductSku; -use Illuminate\Support\Facades\DB; use Beike\Shop\Http\Resources\ProductSimple; use Illuminate\Contracts\Pagination\LengthAwarePaginator; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\HigherOrderBuilderProxy; use Illuminate\Http\Resources\Json\AnonymousResourceCollection; +use Illuminate\Support\Facades\DB; class ProductRepo { diff --git a/plugins/Social/Bootstrap.php b/plugins/Social/Bootstrap.php index 7fb8e5f0..b4edcf33 100644 --- a/plugins/Social/Bootstrap.php +++ b/plugins/Social/Bootstrap.php @@ -19,11 +19,8 @@ class Bootstrap add_hook_blade('admin.plugin.form', function ($callback, $output, $data) { $code = $data['plugin']->code; - if ($code == 'social') { - $view = view('Social::admin.config_form', $data)->render(); - - return $view; + return view('Social::admin.config_form', $data)->render(); } return $output;