From fa1b2ba7e114c74b735d7c5f697d2e74ffdb2862 Mon Sep 17 00:00:00 2001 From: TL Date: Fri, 1 Jul 2022 10:38:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- beike/Shop/Services/AccountService.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/beike/Shop/Services/AccountService.php b/beike/Shop/Services/AccountService.php index 3f34ae60..1e01b7f1 100644 --- a/beike/Shop/Services/AccountService.php +++ b/beike/Shop/Services/AccountService.php @@ -12,6 +12,7 @@ namespace Beike\Shop\Services; +use Beike\Models\Customer; use Beike\Repositories\CustomerRepo; use Illuminate\Support\Facades\Hash; @@ -21,9 +22,9 @@ class AccountService * 注册用户 * * @param array $data // ['email', 'password'] - * @return int + * @return Customer */ - public static function register(array $data): int + public static function register(array $data): Customer { $data['customer_group_id'] = setting('default_customer_group_id', 1); // default_customer_group_id为默认客户组名称 $data['status'] = !setting('approve_customer'); // approve_customer为是否需要审核客户