diff --git a/beike/Installer/config.php b/beike/Installer/config.php index 4cc21c84..5ab7f3f5 100644 --- a/beike/Installer/config.php +++ b/beike/Installer/config.php @@ -13,7 +13,7 @@ return [ | */ 'core' => [ - 'minPhpVersion' => '7.0.0', + 'minPhpVersion' => '8.0.2', ], 'final' => [ 'key' => true, diff --git a/beike/Shop/Services/AccountService.php b/beike/Shop/Services/AccountService.php index 0a02ac02..3a156f12 100644 --- a/beike/Shop/Services/AccountService.php +++ b/beike/Shop/Services/AccountService.php @@ -30,7 +30,7 @@ class AccountService */ public static function register(array $data): Customer { - $data['customer_group_id'] = system_setting('base.default_customer_group_id', 1); // default_customer_group_id为默认客户组名称 + $data['customer_group_id'] = system_setting('base.default_customer_group_id', 0); // default_customer_group_id为默认客户组名称 $data['status'] = !system_setting('base.approve_customer'); // approve_customer为是否需要审核客户 $data['from'] = $data['from'] ?? 'pc'; $data['locale'] = locale();