main
bruce 1 year ago
parent 4c6cb24a24
commit c32b240766
  1. 2
      app/common/repositories/user/UserRepository.php

@ -559,6 +559,7 @@ class UserRepository extends BaseRepository
public function create(string $type, array $userInfo) public function create(string $type, array $userInfo)
{ {
$userInfo['user_type'] = $this->userType($type); $userInfo['user_type'] = $this->userType($type);
$userInfo['growth_rate'] = systemConfig('brand_growth');
if (!isset($userInfo['status'])) { if (!isset($userInfo['status'])) {
$userInfo['status'] = 1; $userInfo['status'] = 1;
} }
@ -694,6 +695,7 @@ class UserRepository extends BaseRepository
'nickname' => substr($phone, 0, 3) . '****' . substr($phone, 7, 4), 'nickname' => substr($phone, 0, 3) . '****' . substr($phone, 7, 4),
'avatar' => '', 'avatar' => '',
'phone' => $phone, 'phone' => $phone,
'growth_rate' => systemConfig('brand_growth') ?? '0.01',
'last_ip' => app('request')->ip() 'last_ip' => app('request')->ip()
]; ];
return $this->create($user_type, $data); return $this->create($user_type, $data);

Loading…
Cancel
Save