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);