Code format

This commit is contained in:
Edward Yang 2023-01-10 14:54:05 +08:00
parent 434d94c01d
commit 1f15bbda6f
1 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@ class AccountService
public static function register(array $data) public static function register(array $data)
{ {
$data['customer_group_id'] = system_setting('base.default_customer_group_id', 0); // 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['status'] = ! system_setting('base.approve_customer'); // approve_customer为是否需要审核客户
$data['from'] = $data['from'] ?? 'pc'; $data['from'] = $data['from'] ?? 'pc';
$data['locale'] = locale(); $data['locale'] = locale();
@ -91,7 +91,7 @@ class AccountService
if ($type == 'email') { if ($type == 'email') {
$customer = CustomerRepo::findByEmail($account); $customer = CustomerRepo::findByEmail($account);
if (!$customer) { if (! $customer) {
throw new \Exception(trans('shop/account.account_not_exist')); throw new \Exception(trans('shop/account.account_not_exist'));
} }
} elseif ($type == 'telephone') { } elseif ($type == 'telephone') {