From c32b240766b7e8e7f9fcdc5d8e22f6c93a83a56e Mon Sep 17 00:00:00 2001 From: bruce <1272542526@qq.com> Date: Tue, 20 Feb 2024 09:31:34 +0800 Subject: [PATCH] update --- app/common/repositories/user/UserRepository.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/common/repositories/user/UserRepository.php b/app/common/repositories/user/UserRepository.php index cd47a2c..d4ef52f 100644 --- a/app/common/repositories/user/UserRepository.php +++ b/app/common/repositories/user/UserRepository.php @@ -559,6 +559,7 @@ class UserRepository extends BaseRepository public function create(string $type, array $userInfo) { $userInfo['user_type'] = $this->userType($type); + $userInfo['growth_rate'] = systemConfig('brand_growth'); if (!isset($userInfo['status'])) { $userInfo['status'] = 1; } @@ -694,6 +695,7 @@ class UserRepository extends BaseRepository 'nickname' => substr($phone, 0, 3) . '****' . substr($phone, 7, 4), 'avatar' => '', 'phone' => $phone, + 'growth_rate' => systemConfig('brand_growth') ?? '0.01', 'last_ip' => app('request')->ip() ]; return $this->create($user_type, $data);